Class: RubyUIConverter::Nodes::Statement
- Defined in:
- lib/ruby_ui_converter/nodes.rb
Overview
<% code %> that is a plain statement (assignment, method call, etc.)
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code:) ⇒ Statement
constructor
A new instance of Statement.
Constructor Details
#initialize(code:) ⇒ Statement
Returns a new instance of Statement.
84 85 86 |
# File 'lib/ruby_ui_converter/nodes.rb', line 84 def initialize(code:) @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
82 83 84 |
# File 'lib/ruby_ui_converter/nodes.rb', line 82 def code @code end |