Class: Rucc::Case

Inherits:
Object
  • Object
show all
Defined in:
lib/rucc/case.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(b:, e:, label:) ⇒ Case



6
7
8
9
10
# File 'lib/rucc/case.rb', line 6

def initialize(b:, e:, label:)
  @b = b
  @e = e
  @label = label
end

Instance Attribute Details

#bObject (readonly)

Returns the value of attribute b.



11
12
13
# File 'lib/rucc/case.rb', line 11

def b
  @b
end

#eObject (readonly)

Returns the value of attribute e.



11
12
13
# File 'lib/rucc/case.rb', line 11

def e
  @e
end

#labelObject (readonly)

Returns the value of attribute label.



11
12
13
# File 'lib/rucc/case.rb', line 11

def label
  @label
end

Class Method Details

.make_case(b, e, label) ⇒ Object



17
18
19
# File 'lib/rucc/case.rb', line 17

def make_case(b, e, label)
  Case.new(b: b, e: e, label: label)
end