Class: Poetics::Syntax::String
- Defined in:
- lib/poetics/syntax/literal.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, column, text) ⇒ String
constructor
A new instance of String.
- #sexp_name ⇒ Object
Methods inherited from Value
Methods inherited from Node
Constructor Details
#initialize(line, column, text) ⇒ String
Returns a new instance of String.
55 56 57 58 |
# File 'lib/poetics/syntax/literal.rb', line 55 def initialize(line, column, text) super @value = text end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
53 54 55 |
# File 'lib/poetics/syntax/literal.rb', line 53 def value @value end |
Instance Method Details
#sexp_name ⇒ Object
60 61 62 |
# File 'lib/poetics/syntax/literal.rb', line 60 def sexp_name :string end |