Module: Moe::ModuleFunctions

Included in:
Moe
Defined in:
lib/moe.rb,
lib/moe/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config.



4
5
6
# File 'lib/moe/config.rb', line 4

def config
  @config
end

Instance Method Details

#collection(name, owner_id) ⇒ Object



19
20
21
# File 'lib/moe.rb', line 19

def collection(name, owner_id)
  Sequence::Collection.new name, owner_id
end

#collector(name, owner_id) ⇒ Object



23
24
25
# File 'lib/moe.rb', line 23

def collector(name, owner_id)
  Sequence::Collector.new name, owner_id
end

#configure {|config| ... } ⇒ Object

Yields:



6
7
8
9
# File 'lib/moe/config.rb', line 6

def configure
  self.config ||= Config.new
  yield(config)
end