Class: Kumi::Core::RubyParser::NestedInput

Inherits:
Object
  • Object
show all
Defined in:
lib/kumi/core/ruby_parser/nested_input.rb

Overview

Simple context struct for nested input collection

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(inputs_array, location) ⇒ NestedInput

Returns a new instance of NestedInput.



10
11
12
13
# File 'lib/kumi/core/ruby_parser/nested_input.rb', line 10

def initialize(inputs_array, location)
  @inputs = inputs_array
  @current_location = location
end

Instance Attribute Details

#current_locationObject (readonly)

Returns the value of attribute current_location.



8
9
10
# File 'lib/kumi/core/ruby_parser/nested_input.rb', line 8

def current_location
  @current_location
end

#inputsObject (readonly)

Returns the value of attribute inputs.



8
9
10
# File 'lib/kumi/core/ruby_parser/nested_input.rb', line 8

def inputs
  @inputs
end