Module: Masterman::Mountable
- Included in:
- Base
- Defined in:
- lib/masterman/mountable.rb
Instance Attribute Summary collapse
-
#class_loader ⇒ Object
readonly
Returns the value of attribute class_loader.
- #primary_key ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#class_loader ⇒ Object (readonly)
Returns the value of attribute class_loader.
4 5 6 |
# File 'lib/masterman/mountable.rb', line 4 def class_loader @class_loader end |
#primary_key ⇒ Object
14 15 16 |
# File 'lib/masterman/mountable.rb', line 14 def primary_key @primary_key || :id end |
Instance Method Details
#class_mount(options = {}) ⇒ Object
10 11 12 |
# File 'lib/masterman/mountable.rb', line 10 def class_mount( = {}) @class_loader = Loader.build() end |
#loader ⇒ Object
18 19 20 |
# File 'lib/masterman/mountable.rb', line 18 def loader @loader || MastermanError.new('not mounted or bad option given') end |