Class: Parameters
- Inherits:
-
Object
- Object
- Parameters
- Includes:
- Enumerable
- Defined in:
- lib/named_parameter/parameters.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(parameters_array) ⇒ Parameters
constructor
A new instance of Parameters.
Constructor Details
#initialize(parameters_array) ⇒ Parameters
Returns a new instance of Parameters.
6 7 8 9 10 |
# File 'lib/named_parameter/parameters.rb', line 6 def initialize(parameters_array) @entries = parameters_array.collect do |parameter_array| Parameter.new parameter_array end end |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
4 5 6 |
# File 'lib/named_parameter/parameters.rb', line 4 def entries @entries end |
Instance Method Details
#each(&block) ⇒ Object
12 13 14 |
# File 'lib/named_parameter/parameters.rb', line 12 def each(&block) @entries.each(&block) end |