Class: Rucc::Keyword
- Inherits:
-
Object
- Object
- Rucc::Keyword
- Defined in:
- lib/rucc/keyword.rb
Instance Attribute Summary collapse
-
#str ⇒ Object
readonly
Returns the value of attribute str.
Instance Method Summary collapse
-
#initialize(str, is_type) ⇒ Keyword
constructor
A new instance of Keyword.
- #is_type? ⇒ Boolean
- #to_s ⇒ Object
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
#str ⇒ Object (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
9 10 11 |
# File 'lib/rucc/keyword.rb', line 9 def is_type? @is_type end |
#to_s ⇒ Object
13 14 15 |
# File 'lib/rucc/keyword.rb', line 13 def to_s @str end |