Class: Indexes::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/indexes/proxy.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}, &block) ⇒ Proxy

Returns a new instance of Proxy.



4
5
6
7
8
# File 'lib/indexes/proxy.rb', line 4

def initialize(name, options={}, &block)
  @options = options
  instance_eval &block
  Indexes.definitions.add name, @options
end