Class: Rsense::Client::Client
- Inherits:
-
Object
- Object
- Rsense::Client::Client
- Defined in:
- lib/rsense/client.rb
Defined Under Namespace
Classes: Config
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
6 7 8 |
# File 'lib/rsense/client.rb', line 6 def config @config end |
Instance Method Details
#gather_info ⇒ Object
14 15 16 |
# File 'lib/rsense/client.rb', line 14 def gather_info @config = Config.new(gem_home, gem_path, $:.join(File::PATH_SEPARATOR)) end |
#gem_home ⇒ Object
18 19 20 |
# File 'lib/rsense/client.rb', line 18 def gem_home ENV["GEM_HOME"] end |
#gem_path ⇒ Object
22 23 24 25 26 27 |
# File 'lib/rsense/client.rb', line 22 def gem_path gem_pth = [] gem_pth << ENV["GEM_PATH"] gem_pth << Gem.path gem_pth.join(File::PATH_SEPARATOR) end |