Class: Term

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keywordObject

Returns the value of attribute keyword.



3
4
5
# File 'lib/localio/term.rb', line 3

def keyword
  @keyword
end

#valuesObject

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

Returns:

  • (Boolean)


10
11
12
# File 'lib/localio/term.rb', line 10

def is_comment?
  @keyword.downcase == '[comment]'
end