Class: TM::Parse::PlainText::Attribute
- Inherits:
-
Object
- Object
- TM::Parse::PlainText::Attribute
- Defined in:
- lib/tm/parse/plain_text.rb
Instance Attribute Summary collapse
-
#header ⇒ Object
Returns the value of attribute header.
-
#value ⇒ Object
(also: #to_s)
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, header) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(value, header) ⇒ Attribute
Returns a new instance of Attribute.
73 74 75 |
# File 'lib/tm/parse/plain_text.rb', line 73 def initialize(value, header) self.value, self.header = value, header end |
Instance Attribute Details
#header ⇒ Object
Returns the value of attribute header.
71 72 73 |
# File 'lib/tm/parse/plain_text.rb', line 71 def header @header end |
#value ⇒ Object Also known as: to_s
Returns the value of attribute value.
71 72 73 |
# File 'lib/tm/parse/plain_text.rb', line 71 def value @value end |