class Eddy::TransactionSets::TS856::Loops::HL_Item::Repeat

(see Eddy::TransactionSets::TS856::Loops::HL_Item::Base)

Public Class Methods

new(store) click to toggle source

@param store [Eddy::Data::Store] @return [void]

Calls superclass method Eddy::Models::Loop::Repeat::new
# File lib/definitions/transaction_sets/manual/856/loops/hl_item.rb, line 28
def initialize(store)
  @hl = Eddy::Segments::HL.new(store)
  @lin = Eddy::Segments::LIN.new(store)
  @sn1 = Eddy::Segments::SN1.new(store)
  @l_sln = Eddy::TransactionSets::TS856::Loops::SLN::Base.new(store)
  super(
    store,
    @hl,
    @lin,
    @sn1,
    @l_sln,
  )
end

Public Instance Methods

HL() { |hl| ... } click to toggle source

(see Eddy::Segments::HL)

@yieldparam [Eddy::Segments::HL] @return [Eddy::Segments::HL]

# File lib/definitions/transaction_sets/manual/856/loops/hl_item.rb, line 46
def HL()
  yield(@hl) if block_given?
  return @hl
end
LIN() { |lin| ... } click to toggle source

(see Eddy::Segments::LIN)

@yieldparam [Eddy::Segments::LIN] @return [Eddy::Segments::LIN]

# File lib/definitions/transaction_sets/manual/856/loops/hl_item.rb, line 55
def LIN()
  yield(@lin) if block_given?
  return @lin
end
L_SLN(&block) click to toggle source

(see Eddy::TransactionSets::TS856::Loops::SLN::Base)

@yieldparam [Eddy::TransactionSets::TS856::Loops::SLN::Repeat] @return [void]

# File lib/definitions/transaction_sets/manual/856/loops/hl_item.rb, line 73
def L_SLN(&block)
  if block_given?
    @l_sln.repeat(&block)
  else
    raise Eddy::Errors::Error, "No block given in loop iteration"
  end
  return nil
end
SN1() { |sn1| ... } click to toggle source

(see Eddy::Segments::SN1)

@yieldparam [Eddy::Segments::SN1] @return [Eddy::Segments::SN1]

# File lib/definitions/transaction_sets/manual/856/loops/hl_item.rb, line 64
def SN1()
  yield(@sn1) if block_given?
  return @sn1
end