Class: XRay::JS::CaseBlockStatement

Inherits:
Statement show all
Defined in:
lib/js/struct.rb

Instance Attribute Summary collapse

Attributes inherited from Element

#left, #right, #type

Instance Method Summary collapse

Methods inherited from Statement

#end_with_semicolon=, #end_with_semicolon?

Methods inherited from Element

#contains?, #position, #text

Constructor Details

#initialize(case_clauses, default_clause, bottom_case_clauses, position) ⇒ CaseBlockStatement

Returns a new instance of CaseBlockStatement.



133
134
135
136
# File 'lib/js/struct.rb', line 133

def initialize(case_clauses, default_clause, bottom_case_clauses, position)
  super 'caseblock', case_clauses, default_clause, position
  @bottom_case_clauses = bottom_case_clauses
end

Instance Attribute Details

#bottom_case_clausesObject (readonly)

Returns the value of attribute bottom_case_clauses.



129
130
131
# File 'lib/js/struct.rb', line 129

def bottom_case_clauses
  @bottom_case_clauses
end