Class: Makers::Fetcher
- Inherits:
-
Object
show all
- Defined in:
- lib/makers/fetcher.rb
Instance Method Summary
collapse
Constructor Details
#initialize(name, options, &block) ⇒ Fetcher
4
5
6
7
8
|
# File 'lib/makers/fetcher.rb', line 4
def initialize(name, options, &block)
@name = name
@options = options
instance_eval &block
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
14
15
|
# File 'lib/makers/fetcher.rb', line 14
def method_missing(name, *args, &block)
end
|
Instance Method Details
#maker(name, options = {}, &block) ⇒ Object
10
11
12
|
# File 'lib/makers/fetcher.rb', line 10
def maker(name, options={}, &block)
Makers.definitions.maker name, @options.merge(options.merge(parent: @name)), &block
end
|