Class: Codabel::Type
- Inherits:
-
Object
- Object
- Codabel::Type
- Defined in:
- lib/codabel/type.rb,
lib/codabel/type/n.rb,
lib/codabel/type/an.rb,
lib/codabel/type/date.rb,
lib/codabel/type/flag.rb,
lib/codabel/type/blank.rb,
lib/codabel/type/amount.rb,
lib/codabel/type/holder.rb,
lib/codabel/type/duplicate.rb,
lib/codabel/type/amount_sign.rb,
lib/codabel/type/communication.rb,
lib/codabel/type/account_structure.rb,
lib/codabel/type/communication_type.rb,
lib/codabel/type/account_description.rb,
lib/codabel/type/account_and_currency.rb,
lib/codabel/type/return_transaction_type.rb
Direct Known Subclasses
AN, AccountAndCurrency, AccountDescription, AccountStructure, Amount, AmountSign, Blank, Communication, CommunicationType, Date, Duplicate, Flag, Holder, N, ReturnTransactionType
Defined Under Namespace
Classes: AN, AccountAndCurrency, AccountDescription, AccountStructure, Amount, AmountSign, Blank, Communication, CommunicationType, Date, Duplicate, Flag, Holder, N, ReturnTransactionType
Instance Method Summary collapse
Instance Method Details
#check!(assertion, message) ⇒ Object
7 8 9 10 11 |
# File 'lib/codabel/type.rb', line 7 def check!(assertion, ) return if assertion raise TypeError, + " for type #{self.class}" end |
#to_coda(_value, _length) ⇒ Object
3 4 5 |
# File 'lib/codabel/type.rb', line 3 def to_coda(_value, _length) raise NotImplementedError, "#{self.class}#to_coda" end |