Class: REHTML::Comment

Inherits:
Node
  • Object
show all
Defined in:
lib/rehtml/elements.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ Comment

Returns a new instance of Comment.



37
38
39
# File 'lib/rehtml/elements.rb', line 37

def initialize(string)
  @string = string
end

Instance Attribute Details

#stringObject (readonly)

Returns the value of attribute string.



36
37
38
# File 'lib/rehtml/elements.rb', line 36

def string
  @string
end