Method: Mooncell::Router#load

Defined in:
lib/mooncell/router.rb

#load(code) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Load routes

Since:

  • 0.1.0



24
25
26
# File 'lib/mooncell/router.rb', line 24

def load(code)
  instance_eval(code)
end