Class: DataMetaPii::AlAttrDef
- Inherits:
-
Object
- Object
- DataMetaPii::AlAttrDef
- Defined in:
- lib/dataMetaPii.rb
Overview
Attribute definition ancestor - should be abstract but Ruby does not let define abstract classes easily.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#val ⇒ Object
Returns the value of attribute val.
Instance Method Summary collapse
-
#initialize(key, val) ⇒ AlAttrDef
constructor
A new instance of AlAttrDef.
Constructor Details
#initialize(key, val) ⇒ AlAttrDef
Returns a new instance of AlAttrDef.
195 196 197 |
# File 'lib/dataMetaPii.rb', line 195 def initialize(key, val) @key, @val = key, val end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
194 195 196 |
# File 'lib/dataMetaPii.rb', line 194 def key @key end |
#val ⇒ Object
Returns the value of attribute val.
194 195 196 |
# File 'lib/dataMetaPii.rb', line 194 def val @val end |