Class: ParametersContainer
- Defined in:
- lib/core/runtime_method/ParametersContainer.rb
Overview
TODO I think this class is pretty pointless - I should try and drop it
Instance Method Summary collapse
-
#copy ⇒ Object
Creates a duplicate of this parameters container.
- #each_variable ⇒ Object
-
#initialize(*params) ⇒ ParametersContainer
constructor
TODO Should this be able to write parameters?.
- #variables ⇒ Object
Methods inherited from Array
#cauldron_method_calls, #contains?, #select_all, #to_declaration, #to_intrinsic, #to_literal, #to_var, #write
Constructor Details
#initialize(*params) ⇒ ParametersContainer
TODO Should this be able to write parameters?
6 7 8 9 10 11 |
# File 'lib/core/runtime_method/ParametersContainer.rb', line 6 def initialize(*params) super() params.each do |x| self.push(x) end end |
Instance Method Details
#copy ⇒ Object
Creates a duplicate of this parameters container.
25 26 27 |
# File 'lib/core/runtime_method/ParametersContainer.rb', line 25 def copy return ParametersContainer.new(*self.collect {|x| x.copy}) end |
#each_variable ⇒ Object
17 18 19 20 21 |
# File 'lib/core/runtime_method/ParametersContainer.rb', line 17 def each_variable self.each do |x| yield x end end |
#variables ⇒ Object
13 14 15 |
# File 'lib/core/runtime_method/ParametersContainer.rb', line 13 def variables return self end |