Module: Angelo::Mustermann

Defined in:
lib/angelo/mustermann.rb

Defined Under Namespace

Modules: ClassMethods Classes: RouteMap

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object

hrm, sneaky



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/angelo/mustermann.rb', line 9

def self.included base
  base.extend ClassMethods
  base.class_eval do
    def_delegator :@responder, :mustermann
  end

  [Responder, WebsocketResponder].each do |res|
    res.class_eval do
      attr_accessor :mustermann
    end
  end
end

Instance Method Details

#paramsObject



46
47
48
# File 'lib/angelo/mustermann.rb', line 46

def params
  @params ||= super.merge mustermann.params(request.path)
end