Module: Hyperloop::Router::Memory::ClassMethods

Defined in:
lib/hyperloop/router/memory/class_methods.rb

Instance Method Summary collapse

Instance Method Details

#render(&block) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/hyperloop/router/memory/class_methods.rb', line 5

def render(&block)
  define_method(:render) do
    React::Router::MemoryRouter() do
      instance_eval(&block)
    end
  end
end