Class: Keisan::AST::String
- Defined in:
- lib/keisan/ast/string.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(content) ⇒ String
constructor
A new instance of String.
- #value(context = nil) ⇒ Object
Constructor Details
#initialize(content) ⇒ String
Returns a new instance of String.
6 7 8 |
# File 'lib/keisan/ast/string.rb', line 6 def initialize(content) @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
4 5 6 |
# File 'lib/keisan/ast/string.rb', line 4 def content @content end |
Instance Method Details
#value(context = nil) ⇒ Object
10 11 12 |
# File 'lib/keisan/ast/string.rb', line 10 def value(context = nil) content end |