Class: QuickStart::Core
- Inherits:
-
Object
- Object
- QuickStart::Core
- Defined in:
- lib/quick_start/core.rb
Class Method Summary collapse
- .config ⇒ Object
- .config_filename ⇒ Object
- .config_path ⇒ Object
- .glade_path ⇒ Object
- .load! ⇒ Object
- .root_config_path ⇒ Object
- .title ⇒ Object
Class Method Details
.config ⇒ Object
34 35 36 |
# File 'lib/quick_start/core.rb', line 34 def config @config ||= load_config end |
.config_filename ⇒ Object
16 17 18 |
# File 'lib/quick_start/core.rb', line 16 def config_filename @config_filename ||= ".quick_start".freeze end |
.config_path ⇒ Object
8 9 10 |
# File 'lib/quick_start/core.rb', line 8 def config_path @config_path ||= File.join(root_config_path, config_filename) end |
.glade_path ⇒ Object
20 21 22 |
# File 'lib/quick_start/core.rb', line 20 def glade_path @glade_path ||= File.join(File.dirname( __FILE__ ), 'ui', 'quick_start.glade') end |
.load! ⇒ Object
28 29 30 31 32 |
# File 'lib/quick_start/core.rb', line 28 def load! gui = QuickStart2Glade.new(glade_path, nil, title) gui.show Gtk.main end |
.root_config_path ⇒ Object
12 13 14 |
# File 'lib/quick_start/core.rb', line 12 def root_config_path @root_config_path ||= ENV['HOME'] || raise(QuickStartError.new('$HOME environment variable must be set')) end |
.title ⇒ Object
24 25 26 |
# File 'lib/quick_start/core.rb', line 24 def title @title ||= "QuickStart".freeze end |