Class: WordsDotDat
- Inherits:
-
Object
- Object
- WordsDotDat
- Defined in:
- lib/wordsdotdat.rb
Class Method Summary collapse
Class Method Details
.adjs ⇒ Object
12 |
# File 'lib/wordsdotdat.rb', line 12 def adjs() @adjs ||= load_data 'adjs.dat' end |
.load_data(filename) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/wordsdotdat.rb', line 15 def load_data(filename) filepath = File.join(File.dirname(__FILE__), '..', 'data', filename) File.open(filepath){|f| Marshal.load(f)} end |
.nouns ⇒ Object
13 |
# File 'lib/wordsdotdat.rb', line 13 def nouns() @nouns ||= load_data 'nouns.dat' end |