class SentenceDance::Dictionary

Attributes

list[R]

Public Class Methods

new(file = 'default') click to toggle source
# File lib/sentence_dance/dictionary.rb, line 9
def initialize(file = 'default')
  @list = YAML.load(File.open(File.expand_path("../dictionaries/#{file}.yml", __FILE__)).read)
end