Class: AutoC::Function::Parameters
- Inherits:
-
Hash
- Object
- Hash
- AutoC::Function::Parameters
- Defined in:
- lib/autoc/function.rb
Overview
Named parameter list for the function
Instance Method Summary collapse
- #[](name) ⇒ Object
-
#initialize(function) ⇒ Parameters
constructor
A new instance of Parameters.
- #to_a ⇒ Object
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_a ⇒ Object
252 |
# File 'lib/autoc/function.rb', line 252 def to_a = values |