Class: RubyCop::Ruby::Binary
- Defined in:
- lib/ruby_cop/ruby/operators.rb
Instance Attribute Summary collapse
-
#lvalue ⇒ Object
readonly
Returns the value of attribute lvalue.
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
-
#rvalue ⇒ Object
readonly
Returns the value of attribute rvalue.
Instance Method Summary collapse
-
#initialize(lvalue, rvalue, operator) ⇒ Binary
constructor
A new instance of Binary.
Methods inherited from Node
Constructor Details
#initialize(lvalue, rvalue, operator) ⇒ Binary
Returns a new instance of Binary.
21 22 23 24 25 |
# File 'lib/ruby_cop/ruby/operators.rb', line 21 def initialize(lvalue, rvalue, operator) @lvalue = lvalue @rvalue = rvalue @operator = operator end |
Instance Attribute Details
#lvalue ⇒ Object (readonly)
Returns the value of attribute lvalue.
27 28 29 |
# File 'lib/ruby_cop/ruby/operators.rb', line 27 def lvalue @lvalue end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
29 30 31 |
# File 'lib/ruby_cop/ruby/operators.rb', line 29 def operator @operator end |
#rvalue ⇒ Object (readonly)
Returns the value of attribute rvalue.
28 29 30 |
# File 'lib/ruby_cop/ruby/operators.rb', line 28 def rvalue @rvalue end |