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.
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_a ⇒ Object
239 |
# File 'lib/autoc/function.rb', line 239 def to_a = values |