Class: DataMetaPii::AttrRef
- Inherits:
-
Object
- Object
- DataMetaPii::AttrRef
- Defined in:
- lib/dataMetaPii.rb
Overview
Attribute reference
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key) ⇒ AttrRef
constructor
A new instance of AttrRef.
-
#to_s ⇒ Object
String representation.
Constructor Details
#initialize(key) ⇒ AttrRef
Returns a new instance of AttrRef.
212 |
# File 'lib/dataMetaPii.rb', line 212 def initialize(key); @key = key end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
211 212 213 |
# File 'lib/dataMetaPii.rb', line 211 def key @key end |
Instance Method Details
#to_s ⇒ Object
String representation
214 |
# File 'lib/dataMetaPii.rb', line 214 def to_s; %<#{self.class.name}{#{@key}}> end |