Module: Abroad

Defined in:
lib/abroad.rb,
lib/abroad/version.rb,
lib/abroad/extractors.rb,
lib/abroad/serializers.rb,
lib/abroad/extractors/xml.rb,
lib/abroad/extractors/json.rb,
lib/abroad/extractors/yaml.rb,
lib/abroad/serializers/xml.rb,
lib/abroad/serializers/json.rb,
lib/abroad/serializers/trie.rb,
lib/abroad/serializers/yaml.rb,
lib/abroad/extractors/extractor.rb,
lib/abroad/serializers/serializer.rb,
lib/abroad/extractors/xml/xml_extractor.rb,
lib/abroad/extractors/yaml/jruby_compat.rb,
lib/abroad/extractors/json/json_extractor.rb,
lib/abroad/extractors/yaml/yaml_extractor.rb,
lib/abroad/serializers/xml/xml_serializer.rb,
lib/abroad/extractors/yaml/rails_extractor.rb,
lib/abroad/extractors/xml/android_extractor.rb,
lib/abroad/serializers/json/json_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/extractors/json/key_value_extractor.rb,
lib/abroad/extractors/yaml/dotted_key_extractor.rb,
lib/abroad/serializers/json/key_value_serializer.rb

Defined Under Namespace

Modules: Extractors, Serializers Classes: SyntaxError

Constant Summary collapse

VERSION =
'3.0.1'

Class Method Summary collapse

Class Method Details

.extractor(id) ⇒ Object



21
22
23
# File 'lib/abroad.rb', line 21

def extractor(id)
  Extractors.get(id)
end

.extractorsObject



17
18
19
# File 'lib/abroad.rb', line 17

def extractors
  Extractors.available
end

.jruby?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/abroad.rb', line 33

def jruby?
  RUBY_ENGINE == 'jruby'
end

.serializer(id) ⇒ Object



29
30
31
# File 'lib/abroad.rb', line 29

def serializer(id)
  Serializers.get(id)
end

.serializersObject



25
26
27
# File 'lib/abroad.rb', line 25

def serializers
  Serializers.available
end