Class: Parametric::Field::PolicyWithKey

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/parametric/field.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policy, key) ⇒ PolicyWithKey

Returns a new instance of PolicyWithKey.



239
240
241
242
# File 'lib/parametric/field.rb', line 239

def initialize(policy, key)
  super policy
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



237
238
239
# File 'lib/parametric/field.rb', line 237

def key
  @key
end