Class: Rucc::Operator

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#strObject (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_sObject



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

def to_s
  @str
end