Class: RubyUIConverter::Nodes::Control
- Defined in:
- lib/ruby_ui_converter/nodes.rb
Overview
if/unless/case/while statements and ‘… do |x|` blocks.
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#branches ⇒ Object
readonly
Returns the value of attribute branches.
-
#output ⇒ Object
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(block: false, output: false) ⇒ Control
constructor
A new instance of Control.
Constructor Details
#initialize(block: false, output: false) ⇒ Control
Returns a new instance of Control.
121 122 123 124 125 |
# File 'lib/ruby_ui_converter/nodes.rb', line 121 def initialize(block: false, output: false) @branches = [] @block = block @output = output end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
119 120 121 |
# File 'lib/ruby_ui_converter/nodes.rb', line 119 def block @block end |
#branches ⇒ Object (readonly)
Returns the value of attribute branches.
118 119 120 |
# File 'lib/ruby_ui_converter/nodes.rb', line 118 def branches @branches end |
#output ⇒ Object
Returns the value of attribute output.
119 120 121 |
# File 'lib/ruby_ui_converter/nodes.rb', line 119 def output @output end |