Class: RubyUIConverter::Nodes::RawText

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

Overview

Raw inner content of <script>/<style> elements (kept verbatim).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content:) ⇒ RawText

Returns a new instance of RawText.



65
66
67
# File 'lib/ruby_ui_converter/nodes.rb', line 65

def initialize(content:)
  @content = content
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



63
64
65
# File 'lib/ruby_ui_converter/nodes.rb', line 63

def content
  @content
end