Class: Tdc::DefinitionResolvers::DefinitionResolver

Inherits:
Object
  • Object
show all
Defined in:
lib/tdc/definition_resolvers/definition_resolver.rb

Overview

Base class for any definition resolver.

Direct Known Subclasses

TagResolver

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#current_catalogObject (readonly)

Returns the value of attribute current_catalog.



7
8
9
# File 'lib/tdc/definition_resolvers/definition_resolver.rb', line 7

def current_catalog
  @current_catalog
end

Instance Method Details

#configure_current_catalog(current_catalog) ⇒ Object



9
10
11
12
13
# File 'lib/tdc/definition_resolvers/definition_resolver.rb', line 9

def configure_current_catalog(current_catalog)
  @current_catalog = current_catalog

  self
end

#resolve(_instance_definition) ⇒ Object



15
16
17
# File 'lib/tdc/definition_resolvers/definition_resolver.rb', line 15

def resolve(_instance_definition)
  raise Tdc::MissingOverrideError, "Implement the 'resolve' method"
end