Method: Opal::SimpleServer#initialize
- Defined in:
- lib/opal/simple_server.rb
#initialize(options = {}) {|_self| ... } ⇒ SimpleServer
Returns a new instance of SimpleServer.
22 23 24 25 26 27 28 |
# File 'lib/opal/simple_server.rb', line 22 def initialize( = {}) @prefix = .fetch(:prefix, 'assets') @main = .fetch(:main, 'application') @index_path = nil yield self if block_given? freeze end |