Skip to content

Commit

Permalink
Document ASTNode#symbolize (#5081)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija authored and RX14 committed Oct 6, 2017
1 parent bdd038d commit f0d609c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/compiler/crystal/macros.cr
Expand Up @@ -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.
#
# ```
Expand Down

0 comments on commit f0d609c

Please sign in to comment.