Class: Feedcellar::Gtk::Command
- Inherits:
-
Thor
- Object
- Thor
- Feedcellar::Gtk::Command
- Defined in:
- lib/feedcellar/gtk/command.rb
Instance Attribute Summary collapse
-
#database_dir ⇒ Object
readonly
Returns the value of attribute database_dir.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Command
constructor
A new instance of Command.
- #show ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize(*args) ⇒ Command
Returns a new instance of Command.
29 30 31 32 33 34 |
# File 'lib/feedcellar/gtk/command.rb', line 29 def initialize(*args) super default_base_dir = File.join(File.("~"), ".feedcellar") @base_dir = ENV["FEEDCELLAR_HOME"] || default_base_dir @database_dir = File.join(@base_dir, "db") end |
Instance Attribute Details
#database_dir ⇒ Object (readonly)
Returns the value of attribute database_dir.
27 28 29 |
# File 'lib/feedcellar/gtk/command.rb', line 27 def database_dir @database_dir end |