Top Level Namespace
Defined Under Namespace
Modules: Lipa
Instance Method Summary collapse
Instance Method Details
#root(name, &block) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/lipa/web.rb', line 36 def root(name, &block) #default options root = Lipa::Root.new(name) do port 9292 server :webrick debug false views File.join(File.absolute_path("."), "views") static_folder File.join(File.absolute_path("."), "public") end root.instance_eval &block if block_given? root.extend(Lipa::Web::Server) root end |