Class: RubyUIConverter::Nodes::Output

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

Overview

<%= code %> or <%== code %>

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code:, raw: false) ⇒ Output

Returns a new instance of Output.



74
75
76
77
# File 'lib/ruby_ui_converter/nodes.rb', line 74

def initialize(code:, raw: false)
  @code = code
  @raw = raw
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



72
73
74
# File 'lib/ruby_ui_converter/nodes.rb', line 72

def code
  @code
end

#rawObject (readonly)

Returns the value of attribute raw.



72
73
74
# File 'lib/ruby_ui_converter/nodes.rb', line 72

def raw
  @raw
end