Class: RubyUIConverter::Nodes::Control

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

Overview

if/unless/case/while statements and ‘… do |x|` blocks.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject

Returns the value of attribute block.



119
120
121
# File 'lib/ruby_ui_converter/nodes.rb', line 119

def block
  @block
end

#branchesObject (readonly)

Returns the value of attribute branches.



118
119
120
# File 'lib/ruby_ui_converter/nodes.rb', line 118

def branches
  @branches
end

#outputObject

Returns the value of attribute output.



119
120
121
# File 'lib/ruby_ui_converter/nodes.rb', line 119

def output
  @output
end