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

Returns a new instance of Case.

Parameters:

  • b (Integer)
  • e (Integer)
  • label (String)


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

Parameters:

  • b (Integer)
  • e (Integer)
  • label (String)


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