Class: Rencoder::Coder

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

Overview

Rencode format encoder/decoder class

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.



8
9
10
# File 'lib/rencoder/coder.rb', line 8

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

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end