Module: WIKIPEDIA
- Defined in:
- lib/meiou/wiki.rb
Constant Summary collapse
- @@INFO =
Hash.new do |h,k| if x = Wikipedia.find(k.to_s).summary h[k] = x.gsub(/\n+/,"\n").split("\n") else h[k] = false end end
Class Method Summary collapse
Class Method Details
.[](k) ⇒ Object
11 12 13 |
# File 'lib/meiou/wiki.rb', line 11 def self.[] k @@INFO[k] end |
.keys ⇒ Object
14 15 16 |
# File 'lib/meiou/wiki.rb', line 14 def self.keys @@INFO.keys end |
.to_h ⇒ Object
17 18 19 |
# File 'lib/meiou/wiki.rb', line 17 def self.to_h @@INFO end |