Class: Curly::Parser::Comment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject (readonly)

Returns the value of attribute value.



41
42
43
# File 'lib/curly/parser.rb', line 41

def value
  @value
end

Instance Method Details

#typeObject



47
48
49
# File 'lib/curly/parser.rb', line 47

def type
  :comment
end