Class: GlobalSettings
- Inherits:
-
Object
- Object
- GlobalSettings
- Includes:
- GladeGUI
- Defined in:
- src/GlobalSettings.rb
Instance Attribute Summary collapse
-
#browser ⇒ Object
Returns the value of attribute browser.
-
#projects ⇒ Object
Returns the value of attribute projects.
-
#template_root ⇒ Object
Returns the value of attribute template_root.
-
#theme_root ⇒ Object
Returns the value of attribute theme_root.
Instance Method Summary collapse
Instance Attribute Details
#browser ⇒ Object
Returns the value of attribute browser
6 7 8 |
# File 'src/GlobalSettings.rb', line 6 def browser @browser end |
#projects ⇒ Object
Returns the value of attribute projects
6 7 8 |
# File 'src/GlobalSettings.rb', line 6 def projects @projects end |
#template_root ⇒ Object
Returns the value of attribute template_root
6 7 8 |
# File 'src/GlobalSettings.rb', line 6 def template_root @template_root end |
#theme_root ⇒ Object
Returns the value of attribute theme_root
6 7 8 |
# File 'src/GlobalSettings.rb', line 6 def theme_root @theme_root end |
Instance Method Details
#add_project(proj_path) ⇒ Object
15 16 17 18 19 20 |
# File 'src/GlobalSettings.rb', line 15 def add_project(proj_path) unless @projects.include?(proj_path) @projects << proj_path VR::save_yaml(self) end end |
#defaults ⇒ Object
8 9 10 11 12 13 |
# File 'src/GlobalSettings.rb', line 8 def defaults @browser ||= "firefox" @projects ||= [] @theme_root = File.join(Dir.home, "my_yard", "themes") @template_root = File.join(Dir.home, "my_yard", "templates") end |