Skip to content

Commit

Permalink
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/compiler/crystal/macros.cr
Original file line number Diff line number Diff line change
@@ -153,6 +153,14 @@ module Crystal::Macros
def stringify : StringLiteral
end

# Returns a `SymbolLiteral` that contains this node's textual representation.
#
# ```
# {{ "foo".id.symbolize }} # => :foo
# ```
def symbolize : SymbolLiteral
end

# Returns a `StringLiteral` that contains this node's name.
#
# ```

0 comments on commit f0d609c

Please sign in to comment.