We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent bdd038d commit f0d609cCopy full SHA for f0d609c
src/compiler/crystal/macros.cr
@@ -153,6 +153,14 @@ module Crystal::Macros
153
def stringify : StringLiteral
154
end
155
156
+ # Returns a `SymbolLiteral` that contains this node's textual representation.
157
+ #
158
+ # ```
159
+ # {{ "foo".id.symbolize }} # => :foo
160
161
+ def symbolize : SymbolLiteral
162
+ end
163
+
164
# Returns a `StringLiteral` that contains this node's name.
165
#
166
# ```
0 commit comments