Class: RubyCop::Ruby::Case
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.
4 5 6 7 |
# File 'lib/ruby_cop/ruby/case.rb', line 4 def initialize(expression, block) @expression = expression @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
10 11 12 |
# File 'lib/ruby_cop/ruby/case.rb', line 10 def block @block end |
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
9 10 11 |
# File 'lib/ruby_cop/ruby/case.rb', line 9 def expression @expression end |