Method: Mudbug#initialize
- Defined in:
- lib/mudbug.rb
#initialize(host = 'localhost', options = {}) {|_self| ... } ⇒ Mudbug
Returns a new instance of Mudbug.
88 89 90 91 92 93 94 95 |
# File 'lib/mudbug.rb', line 88 def initialize(host = 'localhost', = {}) @host = host https = .delete(:https) @protocol = https ? 'https' : 'http' @options = accept :json, :html, :text yield self if block_given? end |