Class: AutoC::Function::Parameters

Inherits:
Hash
  • Object
show all
Defined in:
lib/autoc/function.rb

Overview

Named parameter list for the function

Instance Method Summary collapse

Constructor Details

#initialize(function) ⇒ Parameters

Returns a new instance of Parameters.



235
236
237
238
# File 'lib/autoc/function.rb', line 235

def initialize(function)
  @function = function
  super()
end

Instance Method Details

#[](name) ⇒ Object



240
241
242
243
# File 'lib/autoc/function.rb', line 240

def [](name)
  raise "unknown parameter #{name} in function #{@function}()" unless has_key?(name)
  super
end

#to_aObject



239
# File 'lib/autoc/function.rb', line 239

def to_a = values