Class: Rucc::Keyword

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str, is_type) ⇒ Keyword

Returns a new instance of Keyword.



3
4
5
6
# File 'lib/rucc/keyword.rb', line 3

def initialize(str, is_type)
  @str = str
  @is_type = is_type
end

Instance Attribute Details

#strObject (readonly)

Returns the value of attribute str.



7
8
9
# File 'lib/rucc/keyword.rb', line 7

def str
  @str
end

Instance Method Details

#is_type?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/rucc/keyword.rb', line 9

def is_type?
  @is_type
end

#to_sObject



13
14
15
# File 'lib/rucc/keyword.rb', line 13

def to_s
  @str
end