Class: Curly::Parser::Comment
- Inherits:
-
Object
- Object
- Curly::Parser::Comment
- 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) ⇒ Comment
constructor
A new instance of Comment.
- #type ⇒ Object
Constructor Details
#initialize(value) ⇒ Comment
Returns a new instance of Comment.
43 44 45 |
# File 'lib/curly/parser.rb', line 43 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
41 42 43 |
# File 'lib/curly/parser.rb', line 41 def value @value end |
Instance Method Details
#type ⇒ Object
47 48 49 |
# File 'lib/curly/parser.rb', line 47 def type :comment end |