Class: Rencoder::Coder

Inherits:
Object
  • Object
show all
Includes:
Decoder, Encoder
Defined in:
lib/rencoder/coder.rb

Constant Summary

Constants included from Decoder

Decoder::INTEGER_DECODING_MAP

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Decoder

#decode

Methods included from Encoder

#encode, #encode_array, #encode_boolean, #encode_float, #encode_hash, #encode_integer, #encode_nil, #encode_string

Constructor Details

#initialize(options = {}) ⇒ Coder

Returns a new instance of Coder.



5
6
7
# File 'lib/rencoder/coder.rb', line 5

def initialize(options = {})
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/rencoder/coder.rb', line 3

def options
  @options
end