Skip to content

Correct handling of "it" context #1

@NateFerrero

Description

@NateFerrero

When a group/object/array is executed in the context of anything that does not have a .it, it becomes the entire context.

The following examples should work:

make_lower: {it.lower}
make_lower "Some string"  # "some string"
make_lower {it: "Some string"} # "some string"
make_title: {title: it.title}
make_title "Some string"  # {title: "Some String"}
make_title {it: "Some string"} # {title: "Some String"}
make_upper: [it.upper]
make_upper "Some string"  # ["SOME STRING"]
make_upper {it: "Some string"} # ["SOME STRING"]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions