Class: Rubycop::Analyzer::Ruby::IfMod
- Defined in:
- lib/rubycop/analyzer/ruby/if.rb
Instance Attribute Summary collapse
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
Attributes inherited from Block
Attributes inherited from List
Instance Method Summary collapse
-
#initialize(expression, statements) ⇒ IfMod
constructor
A new instance of IfMod.
Methods inherited from Statements
#to_block, #to_chained_block, #to_program
Methods inherited from List
Methods inherited from Node
Constructor Details
#initialize(expression, statements) ⇒ IfMod
Returns a new instance of IfMod.
19 20 21 22 |
# File 'lib/rubycop/analyzer/ruby/if.rb', line 19 def initialize(expression, statements) @expression = expression super(statements) end |
Instance Attribute Details
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
23 24 25 |
# File 'lib/rubycop/analyzer/ruby/if.rb', line 23 def expression @expression end |