Class: Pincers::Factories::Base
- Inherits:
-
Object
- Object
- Pincers::Factories::Base
- Defined in:
- lib/pincers/factories/base.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(_options) ⇒ Base
constructor
A new instance of Base.
- #load_backend(_options) ⇒ Object
- #new_context ⇒ Object
Constructor Details
#initialize(_options) ⇒ Base
Returns a new instance of Base.
11 12 13 14 |
# File 'lib/pincers/factories/base.rb', line 11 def initialize() @context_options = @backend_options = end |
Class Method Details
.new_context(_options) ⇒ Object
7 8 9 |
# File 'lib/pincers/factories/base.rb', line 7 def self.new_context() self.new().new_context end |
Instance Method Details
#load_backend(_options) ⇒ Object
21 22 23 |
# File 'lib/pincers/factories/base.rb', line 21 def load_backend() raise NotImplementedError end |
#new_context ⇒ Object
16 17 18 19 |
# File 'lib/pincers/factories/base.rb', line 16 def new_context backend = load_backend @backend_options ::Pincers::Core::RootContext.new backend, @context_options end |