Module: DocuBot::Converter
- Defined in:
- lib/docubot/converter.rb
Class Method Summary collapse
Class Method Details
.by_type ⇒ Object
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 |
.types ⇒ Object
11 12 13 |
# File 'lib/docubot/converter.rb', line 11 def self.types @by_type.keys end |