Class: StripChart::Web
- Inherits:
-
Object
- Object
- StripChart::Web
- Defined in:
- lib/stripchart/web.rb
Defined Under Namespace
Classes: App
Instance Method Summary collapse
-
#initialize(channel) ⇒ Web
constructor
A new instance of Web.
- #run! ⇒ Object
Constructor Details
#initialize(channel) ⇒ Web
Returns a new instance of Web.
5 6 7 |
# File 'lib/stripchart/web.rb', line 5 def initialize(channel) @channel = channel end |
Instance Method Details
#run! ⇒ Object
9 10 11 12 13 14 |
# File 'lib/stripchart/web.rb', line 9 def run! puts "Starting a server on http://localhost:9999/" App.run!(:port => 9999, :server => 'webrick') do # system "open http://localhost:9999/" end end |