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.



145
146
147
148
# File 'lib/parametric/field.rb', line 145

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

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



143
144
145
# File 'lib/parametric/field.rb', line 143

def key
  @key
end