Class: Masterman::Loader::Base
- Inherits:
-
Object
- Object
- Masterman::Loader::Base
- Defined in:
- lib/masterman/loader/base.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #all ⇒ Object
- #find ⇒ Object
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/masterman/loader/base.rb', line 8 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/masterman/loader/base.rb', line 4 def @options end |
Instance Method Details
#all ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/masterman/loader/base.rb', line 16 def all if [:cache] @all ||= find_all else find_all end end |
#find ⇒ Object
12 13 14 |
# File 'lib/masterman/loader/base.rb', line 12 def find(*) raise NotImplementedError, 'not implemented yet' end |