Class: Gas::Settings
- Inherits:
-
Object
- Object
- Gas::Settings
- Defined in:
- lib/gas/settings.rb
Overview
Class that contains settings for the app
Instance Attribute Summary collapse
-
#base_dir ⇒ Object
Returns the value of attribute base_dir.
-
#gas_dir ⇒ Object
Returns the value of attribute gas_dir.
-
#github_server ⇒ Object
Returns the value of attribute github_server.
-
#ssh_dir ⇒ Object
Returns the value of attribute ssh_dir.
Instance Method Summary collapse
- #configure {|_self| ... } ⇒ Object
-
#initialize ⇒ Settings
constructor
A new instance of Settings.
Constructor Details
#initialize ⇒ Settings
Returns a new instance of Settings.
8 9 10 11 12 13 |
# File 'lib/gas/settings.rb', line 8 def initialize @base_dir = '~' @gas_dir = "#{@base_dir}/.gas" @ssh_dir = "#{@base_dir}/.ssh" @github_server = 'api.github.com' end |
Instance Attribute Details
#base_dir ⇒ Object
Returns the value of attribute base_dir.
5 6 7 |
# File 'lib/gas/settings.rb', line 5 def base_dir @base_dir end |
#gas_dir ⇒ Object
Returns the value of attribute gas_dir.
6 7 8 |
# File 'lib/gas/settings.rb', line 6 def gas_dir @gas_dir end |
#github_server ⇒ Object
Returns the value of attribute github_server.
5 6 7 |
# File 'lib/gas/settings.rb', line 5 def github_server @github_server end |
#ssh_dir ⇒ Object
Returns the value of attribute ssh_dir.
6 7 8 |
# File 'lib/gas/settings.rb', line 6 def ssh_dir @ssh_dir end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
15 16 17 |
# File 'lib/gas/settings.rb', line 15 def configure yield self if block_given? end |