Class: Rubycop::Analyzer::Ruby::Case

Inherits:
Node
  • Object
show all
Defined in:
lib/rubycop/analyzer/ruby/case.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept

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

#blockObject (readonly)

Returns the value of attribute block.



11
12
13
# File 'lib/rubycop/analyzer/ruby/case.rb', line 11

def block
  @block
end

#expressionObject (readonly)

Returns the value of attribute expression.



10
11
12
# File 'lib/rubycop/analyzer/ruby/case.rb', line 10

def expression
  @expression
end