lib/meiou/astronomy.rb in meiou-0.1.7 vs lib/meiou/astronomy.rb in meiou-0.1.8

- old
+ new

@@ -54,12 +54,18 @@ [:parallel,:tangential,:perpendicular] end def self.planets [:mercury,:venus,:mars,:vesta,:ceres,:jupiter,:saturn,:uranus,:neptune,:pluto] end + def self.init! + File.open("books/astronomy.txt",'w') { |f| f.write(ASTRO.to_s) } + end + end module Meiou def self.astronomy ASTRO end end + +Meiou.init(:astro) { |h| ASTRO.init! }