Class: Cnab::TrailerArquivo

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
lib/cnab/trailer_arquivo.rb

Instance Method Summary collapse

Methods included from Helper

#inspect, #method_missing, #respond_to_missing?

Constructor Details

#initialize(line, definition) ⇒ TrailerArquivo

Returns a new instance of TrailerArquivo.



5
6
7
8
9
10
# File 'lib/cnab/trailer_arquivo.rb', line 5

def initialize(line, definition)
  raise Exceptions::LineNotParseable unless line.size == 242

  @line = line
  @definition = definition
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Cnab::Helper