Class: DataMetaPii::AlAttrDef

Inherits:
Object
  • Object
show all
Defined in:
lib/dataMetaPii.rb

Overview

Attribute definition ancestor - should be abstract but Ruby does not let define abstract classes easily.

Direct Known Subclasses

AlAttrDec, AlAttrInt, AlAttrStr, AlAttrVoClass

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject

Returns the value of attribute key.



194
195
196
# File 'lib/dataMetaPii.rb', line 194

def key
  @key
end

#valObject

Returns the value of attribute val.



194
195
196
# File 'lib/dataMetaPii.rb', line 194

def val
  @val
end