Module: Codec

Defined in:
lib/codec.rb,
lib/codec/fix.rb,
lib/codec/tlv.rb,
lib/codec/base.rb,
lib/codec/field.rb,
lib/codec/bitmap.rb,
lib/codec/logger.rb,
lib/codec/packed.rb,
lib/codec/prefix.rb,
lib/codec/factory.rb,
lib/codec/version.rb,
lib/codec/composed.rb,
lib/codec/exceptions.rb,
lib/codec/eight_bits_encoding.rb

Defined Under Namespace

Modules: EightBitsEncoding Classes: Ascii, Base, BaseComposed, Bertlv, Binary, Bitmap, BufferUnderflow, Ebcdic, EncodingException, Field, Fix, Headerlength, InitializeException, NilField, Numace, Numasc, Numbin, Numebc, Numstr, Packed, ParsingException, Prefixedlength, RaiminingData, Strace, String, Tagged, Tlv, TooLongDataException

Constant Summary collapse

EBCDIC_2_ASCII =

Class Auto Converting Ebcdic to ASCII for number and string

["000102039C09867F978D8E0B0C0D0E0F101112139D8508871819928F1C1D1E1F"+
"80818283840A171B88898A8B8C050607909116939495960498999A9B14159E1A"+
"20A0A1A2A3A4A5A6A7A8D52E3C282B7C26A9AAABACADAEAFB0B121242A293B5E"+
"2D2FB2B3B4B5B6B7B8B9E52C255F3E3FBABBBCBDBEBFC0C1C2603A2340273D22"+
"C3616263646566676869C4C5C6C7C8C9CA6A6B6C6D6E6F707172CBCCCDCECFD0"+
"D17E737475767778797AD2D3D45BD6D7D8D9DADBDCDDDEDFE0E1E2E3E45DE6E7"+
"7B414243444546474849E8E9EAEBECED7D4A4B4C4D4E4F505152EEEFF0F1F2F3"+
"5C9F535455565758595AF4F5F6F7F8F930313233343536373839FAFBFCFDFEFF"].pack("H*")
Logger =
Log4r::Logger.new self.name
VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.deprecated(msg) ⇒ Object

method use to log deprecation warning



19
20
21
22
23
24
# File 'lib/codec.rb', line 19

def self.deprecated(msg)
  stack = Kernel.caller
  stack.shift
  Logger.warn "DEPRECATED: #{msg} | Call stack :
  #{stack.select{|l| l =~ /codec\/lib/}.each{|l| l}.join("\n")}"
end