Module: Abroad::Extractors

Defined in:
lib/abroad/extractors.rb,
lib/abroad/extractors/txt.rb,
lib/abroad/extractors/xml.rb,
lib/abroad/extractors/json.rb,
lib/abroad/extractors/yaml.rb,
lib/abroad/extractors/extractor.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/extractors/yaml/rails_extractor.rb,
lib/abroad/extractors/xml/android_extractor.rb,
lib/abroad/extractors/json/key_value_extractor.rb,
lib/abroad/extractors/yaml/dotted_key_extractor.rb

Defined Under Namespace

Modules: Json, Txt, Xml, Yaml Classes: Extractor

Class Method Summary collapse

Class Method Details

.availableObject


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

def available
  registered.keys
end

.get(id) ⇒ Object


14
15
16
# File 'lib/abroad/extractors.rb', line 14

def get(id)
  registered[id.to_s]
end

.register(id, klass) ⇒ Object


10
11
12
# File 'lib/abroad/extractors.rb', line 10

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