Class: RubyUIConverter::Nodes::Comment

Inherits:
Base
  • Object
show all
Defined in:
lib/ruby_ui_converter/nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text:, html: false) ⇒ Comment

Returns a new instance of Comment.



92
93
94
95
# File 'lib/ruby_ui_converter/nodes.rb', line 92

def initialize(text:, html: false)
  @text = text
  @html = html
end

Instance Attribute Details

#htmlObject (readonly)

Returns the value of attribute html.



90
91
92
# File 'lib/ruby_ui_converter/nodes.rb', line 90

def html
  @html
end

#textObject (readonly)

Returns the value of attribute text.



90
91
92
# File 'lib/ruby_ui_converter/nodes.rb', line 90

def text
  @text
end