Class: Suggester::Handlers::Yaml
- Defined in:
- lib/suggester/handlers/yaml.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Yaml
constructor
A new instance of Yaml.
Methods inherited from Base
Methods included from Helpers::Refresh
#force_refresh!, #last_refreshed_at, #needs_refresh?, #refresh!, #refresh_interval, #refresh_interval=
Constructor Details
#initialize(params = {}) ⇒ Yaml
Returns a new instance of Yaml.
6 7 8 9 |
# File 'lib/suggester/handlers/yaml.rb', line 6 def initialize(params = {}) @file = params.delete(:file) || raise("must specify a file") super(params) end |