Class: Rubycop::Analyzer::Ruby::Binary
- Defined in:
- lib/rubycop/analyzer/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.
22 23 24 25 26 |
# File 'lib/rubycop/analyzer/ruby/operators.rb', line 22 def initialize(lvalue, rvalue, operator) @lvalue = lvalue @rvalue = rvalue @operator = operator end |
Instance Attribute Details
#lvalue ⇒ Object (readonly)
Returns the value of attribute lvalue.
28 29 30 |
# File 'lib/rubycop/analyzer/ruby/operators.rb', line 28 def lvalue @lvalue end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
30 31 32 |
# File 'lib/rubycop/analyzer/ruby/operators.rb', line 30 def operator @operator end |
#rvalue ⇒ Object (readonly)
Returns the value of attribute rvalue.
29 30 31 |
# File 'lib/rubycop/analyzer/ruby/operators.rb', line 29 def rvalue @rvalue end |