Module: Abroad::Serializers

Defined in:
lib/abroad/serializers.rb,
lib/abroad/serializers/txt.rb,
lib/abroad/serializers/xml.rb,
lib/abroad/serializers/json.rb,
lib/abroad/serializers/trie.rb,
lib/abroad/serializers/yaml.rb,
lib/abroad/serializers/serializer.rb,
lib/abroad/serializers/txt/txt_serializer.rb,
lib/abroad/serializers/xml/xml_serializer.rb,
lib/abroad/serializers/json/json_serializer.rb,
lib/abroad/serializers/txt/lines_serializer.rb,
lib/abroad/serializers/yaml/yaml_serializer.rb,
lib/abroad/serializers/yaml/rails_serializer.rb,
lib/abroad/serializers/xml/android_serializer.rb,
lib/abroad/serializers/json/key_value_serializer.rb

Defined Under Namespace

Modules: Json, Txt, Xml, Yaml Classes: Serializer, Trie, TrieNode

Class Method Summary collapse

Class Method Details

.availableObject


19
20
21
# File 'lib/abroad/serializers.rb', line 19

def available
  registered.keys
end

.get(id) ⇒ Object


15
16
17
# File 'lib/abroad/serializers.rb', line 15

def get(id)
  registered[id]
end

.register(id, klass) ⇒ Object


11
12
13
# File 'lib/abroad/serializers.rb', line 11

def register(id, klass)
  registered[id] = klass
end