Module: WorldDB::Service
- Defined in:
- lib/worlddb/service/version.rb,
lib/worlddb/service/server.rb,
lib/worlddb/service.rb
Defined Under Namespace
Classes: Server
Constant Summary collapse
- VERSION =
'0.1.0'
Class Method Summary collapse
- .banner ⇒ Object
-
.root ⇒ Object
fix: move to WorldDB.
Class Method Details
.banner ⇒ Object
24 25 26 |
# File 'lib/worlddb/service.rb', line 24 def self. "worlddb-service #{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] on Sinatra/#{Sinatra::VERSION} (#{ENV['RACK_ENV']})" end |
.root ⇒ Object
fix: move to WorldDB
29 30 31 |
# File 'lib/worlddb/service.rb', line 29 def self.root "#{File.( File.dirname(File.dirname(File.dirname(__FILE__))) )}" end |