Class: Rubycop::Analyzer::Ruby::Unary
- Defined in:
- lib/rubycop/analyzer/ruby/operators.rb
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
Instance Method Summary collapse
-
#initialize(operator, operand) ⇒ Unary
constructor
A new instance of Unary.
Methods inherited from Node
Constructor Details
#initialize(operator, operand) ⇒ Unary
Returns a new instance of Unary.
8 9 10 11 |
# File 'lib/rubycop/analyzer/ruby/operators.rb', line 8 def initialize(operator, operand) @operator = operator @operand = operand end |
Instance Attribute Details
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
14 15 16 |
# File 'lib/rubycop/analyzer/ruby/operators.rb', line 14 def operand @operand end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
13 14 15 |
# File 'lib/rubycop/analyzer/ruby/operators.rb', line 13 def operator @operator end |