Class: CooklangRb::Text
- Inherits:
-
Object
- Object
- CooklangRb::Text
- Includes:
- Steppable
- Defined in:
- lib/cooklang_rb/text.rb
Constant Summary collapse
- TAGS =
/[@#~]|\n/
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value) ⇒ Text
constructor
A new instance of Text.
Methods included from Steppable
Constructor Details
#initialize(value) ⇒ Text
Returns a new instance of Text.
18 19 20 |
# File 'lib/cooklang_rb/text.rb', line 18 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/cooklang_rb/text.rb', line 7 def value @value end |