Class: GlobalSettings

Inherits:
Object
  • Object
show all
Includes:
GladeGUI
Defined in:
src/GlobalSettings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#browserObject

Returns the value of attribute browser



6
7
8
# File 'src/GlobalSettings.rb', line 6

def browser
  @browser
end

#projectsObject

Returns the value of attribute projects



6
7
8
# File 'src/GlobalSettings.rb', line 6

def projects
  @projects
end

#template_rootObject

Returns the value of attribute template_root



6
7
8
# File 'src/GlobalSettings.rb', line 6

def template_root
  @template_root
end

#theme_rootObject

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

#defaultsObject



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