Class: Parametric::Field::PolicyWithKey
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Parametric::Field::PolicyWithKey
- Defined in:
- lib/parametric/field.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(policy, key) ⇒ PolicyWithKey
constructor
A new instance of PolicyWithKey.
Constructor Details
#initialize(policy, key) ⇒ PolicyWithKey
Returns a new instance of PolicyWithKey.
145 146 147 148 |
# File 'lib/parametric/field.rb', line 145 def initialize(policy, key) super policy @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
143 144 145 |
# File 'lib/parametric/field.rb', line 143 def key @key end |