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.



248
249
250
251
# File 'lib/autoc/function.rb', line 248

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

Instance Method Details

#[](name) ⇒ Object



253
254
255
256
# File 'lib/autoc/function.rb', line 253

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

#to_aObject



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

def to_a = values