Module: SmartWatch

Defined in:
lib/smart_watch.rb,
lib/smart_watch/base.rb,
lib/smart_watch/logger.rb,
lib/smart_watch/version.rb,
lib/smart_watch/commands/cli.rb

Overview

The main SmartWatch driver

Defined Under Namespace

Modules: Commands, Logger, RUBY_VERSION, VERSION Classes: Base, Error

Class Method Summary collapse

Class Method Details

.configObject



11
12
13
# File 'lib/smart_watch.rb', line 11

def self.config
	@@config ||= OpenStruct.new
end

.gem_versionObject

Returns the version of the currently loaded SmartWatch as a Gem::Version.



5
6
7
# File 'lib/smart_watch/version.rb', line 5

def self.gem_version
  Gem::Version.new VERSION::STRING
end

.ruby_versionObject



13
14
15
# File 'lib/smart_watch/version.rb', line 13

def self.ruby_version
  RUBY_VERSION::STRING
end

.versionObject



9
10
11
# File 'lib/smart_watch/version.rb', line 9

def self.version
  self.gem_version.to_s
end