Sha256: 208837eb330bc3574f1eaf93171a229d7bb7c9e78c1b3e8232d82a46b731c1a6
Contents?: true
Size: 466 Bytes
Versions: 3
Compression:
Stored size: 466 Bytes
Contents
module ARBookFinder module Configuration VALID_OPTION_KEYS = [ :user_type ] DEFAULT_USER_TYPE = nil.freeze attr_accessor(*VALID_OPTION_KEYS) def self.extended(base) base.reset end def configure yield self end def options VALID_OPTION_KEYS.inject({}) do |option, key| option.merge!(key => send(key)) end end def reset self.user_type = DEFAULT_USER_TYPE end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ar_book_finder-1.1.1 | lib/ar_book_finder/configuration.rb |
ar_book_finder-1.1.0 | lib/ar_book_finder/configuration.rb |
ar_book_finder-1.0.0 | lib/ar_book_finder/configuration.rb |