Class: PHPRPC::FakeServer
- Inherits:
-
Object
- Object
- PHPRPC::FakeServer
- Defined in:
- lib/phprpc/fake_server.rb
Instance Method Summary collapse
-
#initialize ⇒ FakeServer
constructor
A new instance of FakeServer.
Constructor Details
#initialize ⇒ FakeServer
Returns a new instance of FakeServer.
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/phprpc/fake_server.rb', line 36 def initialize @opts = OptionParser.new @opts. = "Usage: #{@opts.program_name} [ServerName] [options]" @opts.separator "" @opts.separator "ServerName: (mongrel, thin, fcgi, scgi, lsapi, ebb, webrick)" @opts.separator "" @opts.separator "options:" @opts.on_tail('-?', '-h', '--help', "Show this help message.", "Show more messages with ServerName.") { puts @opts; exit } puts @opts exit end |