Module: Hyperloop::Router::Static::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#render_router(&block) ⇒ Object



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

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