Class: Curly::Parser::Text
- Inherits:
-
Object
- Object
- Curly::Parser::Text
- Defined in:
- lib/curly/parser.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Text
constructor
A new instance of Text.
- #type ⇒ Object
Constructor Details
#initialize(value) ⇒ Text
Returns a new instance of Text.
31 32 33 |
# File 'lib/curly/parser.rb', line 31 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
29 30 31 |
# File 'lib/curly/parser.rb', line 29 def value @value end |
Instance Method Details
#type ⇒ Object
35 36 37 |
# File 'lib/curly/parser.rb', line 35 def type :text end |