Class: Innkeeper::Resolvers::Abstract
- Inherits:
-
Object
- Object
- Innkeeper::Resolvers::Abstract
- Defined in:
- lib/innkeeper/resolvers/abstract.rb
Instance Attribute Summary collapse
-
#init_config ⇒ Object
Returns the value of attribute init_config.
Instance Method Summary collapse
-
#initialize(init_config) ⇒ Abstract
constructor
A new instance of Abstract.
- #resolve ⇒ Object
Constructor Details
#initialize(init_config) ⇒ Abstract
Returns a new instance of Abstract.
6 7 8 |
# File 'lib/innkeeper/resolvers/abstract.rb', line 6 def initialize(init_config) @init_config = init_config.freeze end |
Instance Attribute Details
#init_config ⇒ Object
Returns the value of attribute init_config.
4 5 6 |
# File 'lib/innkeeper/resolvers/abstract.rb', line 4 def init_config @init_config end |
Instance Method Details
#resolve ⇒ Object
10 11 12 |
# File 'lib/innkeeper/resolvers/abstract.rb', line 10 def resolve raise "Cannot use abstract class directly" end |