Class: Rucc::Operator
- Inherits:
-
Object
- Object
- Rucc::Operator
- Defined in:
- lib/rucc/operator.rb
Instance Attribute Summary collapse
-
#str ⇒ Object
readonly
Returns the value of attribute str.
Instance Method Summary collapse
-
#initialize(name, str) ⇒ Operator
constructor
A new instance of Operator.
- #to_s ⇒ Object
Constructor Details
#initialize(name, str) ⇒ Operator
Returns a new instance of Operator.
3 4 5 6 |
# File 'lib/rucc/operator.rb', line 3 def initialize(name, str) @name = name @str = str end |
Instance Attribute Details
#str ⇒ Object (readonly)
Returns the value of attribute str.
7 8 9 |
# File 'lib/rucc/operator.rb', line 7 def str @str end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/rucc/operator.rb', line 9 def to_s @str end |