Class: Descartes

Inherits:
Object
  • Object
show all
Defined in:
lib/descartes/version.rb,
lib/descartes/descartes.rb,
lib/descartes/modules/rpn.rb,
lib/descartes/modules/url.rb,
lib/descartes/modules/seen.rb,
lib/descartes/modules/trec.rb,
lib/descartes/modules/reply.rb,
lib/descartes/modules/google.rb,
lib/descartes/modules/shinbo.rb,
lib/descartes/modules/sindaco.rb,
lib/descartes/modules/currency.rb,
lib/descartes/modules/synonyms.rb,
lib/descartes/modules/crunchyroll.rb

Overview

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE

Version 2, December 2004

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

          DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.

Defined Under Namespace

Classes: Crunchybot, Currency, Google, RPN, Reply, Seen, Shinbo, Sindaco, Treccani, Url

Class Method Summary collapse

Class Method Details

.loadObject



16
17
18
19
20
21
22
23
24
# File 'lib/descartes/descartes.rb', line 16

def self.load
  Dir.glob(File.expand_path('../modules/*.rb', __FILE__)).each { |plugin|
    require plugin
  }

  return Descartes.constants.map { |p|
    "Descartes::#{p}".split('::').inject(Object) { |o, c| o.const_get c }
  }
end

.versionObject



16
17
18
# File 'lib/descartes/version.rb', line 16

def self.version
  '0.3.7.1'
end