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



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

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

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



139
140
141
# File 'lib/parametric/field.rb', line 139

def key
  @key
end