Sha256: 2d87693d8185ebfd242e58da6d1178b68007aac6948bbbd406fd86a5b613791c
Contents?: true
Size: 878 Bytes
Versions: 2
Compression:
Stored size: 878 Bytes
Contents
require File.expand_path("../config", __FILE__) require File.expand_path("../constant", __FILE__) require File.expand_path("../initializer", __FILE__) require File.expand_path("../word_for", __FILE__) require File.expand_path("../authentication", __FILE__) module WhowishWord include WhowishWord::Constant include WhowishWord::Initializer include WhowishWord::WordFor include WhowishWord::Authentication attr_accessor :words def init(orm_engine = :active_record) @orm_engine = orm_engine init_username_and_password install_route install_hook load_rails run_database_migration words = WhowishWordHtml.all() @words = {} words.each { |word| @words[word.word_id] = word.content } end def add_or_set_word(word_id, content) @words[word_id] = content end extend self end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
whowish_word-0.3.3 | lib/whowish_word/whowish_word.rb |
whowish_word-0.3.2 | lib/whowish_word/whowish_word.rb |