Class: Term
- Inherits:
-
Object
- Object
- Term
- Defined in:
- lib/localio/term.rb
Instance Attribute Summary collapse
-
#keyword ⇒ Object
Returns the value of attribute keyword.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(keyword) ⇒ Term
constructor
A new instance of Term.
- #is_comment? ⇒ Boolean
Constructor Details
#initialize(keyword) ⇒ Term
Returns a new instance of Term.
5 6 7 8 |
# File 'lib/localio/term.rb', line 5 def initialize(keyword) @keyword = keyword @values = Hash.new end |
Instance Attribute Details
#keyword ⇒ Object
Returns the value of attribute keyword.
3 4 5 |
# File 'lib/localio/term.rb', line 3 def keyword @keyword end |
#values ⇒ Object
Returns the value of attribute values.
3 4 5 |
# File 'lib/localio/term.rb', line 3 def values @values end |
Instance Method Details
#is_comment? ⇒ Boolean
10 11 12 |
# File 'lib/localio/term.rb', line 10 def is_comment? @keyword.downcase == '[comment]' end |