Class: Curly::Parser::Text

Inherits:
Object
  • Object
show all
Defined in:
lib/curly/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject (readonly)

Returns the value of attribute value.



29
30
31
# File 'lib/curly/parser.rb', line 29

def value
  @value
end

Instance Method Details

#typeObject



35
36
37
# File 'lib/curly/parser.rb', line 35

def type
  :text
end