Module: Panchira::Extensions

Defined in:
lib/panchira/extensions.rb

Overview

This Module manages Resolver classes. To enable your own Resolver, you need to call Extensions::register().

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.resolversObject (readonly)

Panchira::fetch will find a correct Resolver based on this list.



16
17
18
# File 'lib/panchira/extensions.rb', line 16

def resolvers
  @resolvers
end

Class Method Details

.register(resolver) ⇒ Object

Register a given Resolver to Extensions::Resolvers.



11
12
13
# File 'lib/panchira/extensions.rb', line 11

def register(resolver)
  @resolvers.push(resolver) unless @resolvers.include?(resolver)
end