Module: DocuBot::Converter

Defined in:
lib/docubot/converter.rb

Class Method Summary collapse

Class Method Details

.by_typeObject



8
9
10
# File 'lib/docubot/converter.rb', line 8

def self.by_type
  @by_type
end

.to_convert(*types, &block) ⇒ Object



5
6
7
# File 'lib/docubot/converter.rb', line 5

def self.to_convert( *types, &block )
  types.each{ |type| @by_type[type.to_s] = block }
end

.typesObject



11
12
13
# File 'lib/docubot/converter.rb', line 11

def self.types
  @by_type.keys
end