Class: Sinclair::MethodBuilder::Base Private
- Inherits:
-
Object
- Object
- Sinclair::MethodBuilder::Base
- Defined in:
- lib/sinclair/method_builder/base.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Base class responsible for building methods
Direct Known Subclasses
Instance Method Summary collapse
-
#build ⇒ Symbol
private
Build method (should be implemented in subclass).
-
#initialize(klass, definition, type:) ⇒ Base
constructor
private
A new instance of Base.
Constructor Details
#initialize(klass, definition, type:) ⇒ Base
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Base.
15 16 17 18 19 |
# File 'lib/sinclair/method_builder/base.rb', line 15 def initialize(klass, definition, type:) @klass = klass @definition = definition @type = type end |
Instance Method Details
#build ⇒ Symbol
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Build method (should be implemented in subclass)
26 27 28 |
# File 'lib/sinclair/method_builder/base.rb', line 26 def build raise 'Not implemented yet. this should be imlemented in subclasses' end |