Class: Rubycop::Analyzer::Ruby::Case
- Defined in:
- lib/rubycop/analyzer/ruby/case.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
Instance Method Summary collapse
-
#initialize(expression, block) ⇒ Case
constructor
A new instance of Case.
Methods inherited from Node
Constructor Details
#initialize(expression, block) ⇒ Case
Returns a new instance of Case.
5 6 7 8 |
# File 'lib/rubycop/analyzer/ruby/case.rb', line 5 def initialize(expression, block) @expression = expression @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
11 12 13 |
# File 'lib/rubycop/analyzer/ruby/case.rb', line 11 def block @block end |
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
10 11 12 |
# File 'lib/rubycop/analyzer/ruby/case.rb', line 10 def expression @expression end |