module Momm

Constants

YAS

VERSION

Public Class Methods

setup(&block) click to toggle source

Default options setup

Example

Momm.setup do

store :redis_store, host: "127.0.0.1"

end

# File lib/momm.rb, line 23
def setup(&block)
  bridge.instance_eval(&block)
end

Private Class Methods

bridge() click to toggle source

Delegate the bridge

# File lib/momm.rb, line 41
def bridge
  @bridge ||= Bridge.new
end
calculator() click to toggle source

Delegate the calculator

# File lib/momm.rb, line 36
def calculator
  @calculator = Calculator.new bridge.storage, bridge.feed
end