Class: Stupidedi::Builder::IdentifierStack::GS

Inherits:
Object
  • Object
show all
Defined in:
lib/stupidedi/builder/identifier_stack.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent, id) ⇒ GS


87
88
89
# File 'lib/stupidedi/builder/identifier_stack.rb', line 87

def initialize(parent, id)
  @count, @parent, @next, @id = 0, parent, id, id
end

Instance Attribute Details

#id (readonly)

Returns the value of attribute id


85
86
87
# File 'lib/stupidedi/builder/identifier_stack.rb', line 85

def id
  @id
end

Instance Method Details

#countInteger

GE01 Number of Transaction Sets (within current functional group)


98
99
100
# File 'lib/stupidedi/builder/identifier_stack.rb', line 98

def count
  @count
end

#pop


102
103
104
# File 'lib/stupidedi/builder/identifier_stack.rb', line 102

def pop
  @parent
end

#st


91
92
93
# File 'lib/stupidedi/builder/identifier_stack.rb', line 91

def st
  ST.new(self, @next).tap { @count += 1; @next += 1 }
end