Module: CFONB

Defined in:
lib/cfonb.rb,
lib/cfonb/error.rb,
lib/cfonb/parser.rb,
lib/cfonb/operation.rb,
lib/cfonb/statement.rb,
lib/cfonb/line_parser.rb,
lib/cfonb/line_parser/base.rb,
lib/cfonb/operation_details.rb,
lib/cfonb/refinements/strings.rb,
lib/cfonb/line_parser/operation.rb,
lib/cfonb/operation_details/fee.rb,
lib/cfonb/operation_details/ibe.rb,
lib/cfonb/operation_details/ipy.rb,
lib/cfonb/operation_details/lc2.rb,
lib/cfonb/operation_details/lcc.rb,
lib/cfonb/operation_details/lcs.rb,
lib/cfonb/operation_details/lib.rb,
lib/cfonb/operation_details/mmo.rb,
lib/cfonb/operation_details/nbe.rb,
lib/cfonb/operation_details/nbu.rb,
lib/cfonb/operation_details/npo.rb,
lib/cfonb/operation_details/npy.rb,
lib/cfonb/operation_details/rcn.rb,
lib/cfonb/operation_details/ref.rb,
lib/cfonb/operation_details/base.rb,
lib/cfonb/line_parser/new_balance.rb,
lib/cfonb/operation_details/unknown.rb,
lib/cfonb/line_parser/previous_balance.rb,
lib/cfonb/line_parser/operation_details.rb

Defined Under Namespace

Modules: LineParser, OperationDetails, Refinements Classes: AlreadyDefinedOperationError, Error, InvalidCodeError, Operation, Parser, ParserError, Statement, UnfinishedStatementError, UnhandledLineCodeError, UnstartedOperationError, UnstartedStatementError

Constant Summary collapse

Details =
Class.new

Class Method Summary collapse

Class Method Details

.parse(input, optimistic: false) ⇒ Object



38
39
40
# File 'lib/cfonb.rb', line 38

def self.parse(input, optimistic: false)
  Parser.new(input).parse(optimistic: optimistic)
end

.parse_operation(input, optimistic: false) ⇒ Object



42
43
44
# File 'lib/cfonb.rb', line 42

def self.parse_operation(input, optimistic: false)
  Parser.new(input).parse_operation(optimistic: optimistic)
end