Module: Abroad

Defined in:
lib/abroad.rb,
lib/abroad/version.rb,
lib/abroad/extractors.rb,
lib/abroad/serializers.rb,
lib/abroad/extractors/txt.rb,
lib/abroad/extractors/xml.rb,
lib/abroad/extractors/json.rb,
lib/abroad/extractors/yaml.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/extractors/extractor.rb,
lib/abroad/serializers/serializer.rb,
lib/abroad/extractors/txt/txt_extractor.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/txt/lines_extractor.rb,
lib/abroad/extractors/yaml/yaml_extractor.rb,
lib/abroad/serializers/txt/txt_serializer.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/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/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 =
'4.4.0'

Class Method Summary collapse

Class Method Details

.extractor(id) ⇒ Object


23
24
25
# File 'lib/abroad.rb', line 23

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

.extractorsObject


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

def extractors
  Extractors.available
end

.jruby?Boolean

Returns:

  • (Boolean)

35
36
37
# File 'lib/abroad.rb', line 35

def jruby?
  RUBY_ENGINE == 'jruby'
end

.serializer(id) ⇒ Object


31
32
33
# File 'lib/abroad.rb', line 31

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

.serializersObject


27
28
29
# File 'lib/abroad.rb', line 27

def serializers
  Serializers.available
end