Class: RubyUIConverter::Nodes::Comment
- Defined in:
- lib/ruby_ui_converter/nodes.rb
Instance Attribute Summary collapse
-
#html ⇒ Object
readonly
Returns the value of attribute html.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text:, html: false) ⇒ Comment
constructor
A new instance of Comment.
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
#html ⇒ Object (readonly)
Returns the value of attribute html.
90 91 92 |
# File 'lib/ruby_ui_converter/nodes.rb', line 90 def html @html end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
90 91 92 |
# File 'lib/ruby_ui_converter/nodes.rb', line 90 def text @text end |