Class: Projects
Class Method Summary collapse
- .after_menu ⇒ Object
- .before_menu ⇒ Object
- .default ⇒ Object
- .default_project ⇒ Object
- .menu ⇒ Object
Class Method Details
.after_menu ⇒ Object
5 6 7 |
# File 'lib/xiki/projects.rb', line 5 def self. nil end |
.before_menu ⇒ Object
2 3 4 |
# File 'lib/xiki/projects.rb', line 2 def self. nil end |
.default ⇒ Object
17 18 19 20 |
# File 'lib/xiki/projects.rb', line 17 def self.default # If parent is dir, return it, else return first project dir = FileTree.handles?(Xiki.trunk[-2]) ? "#{Dir.pwd}/" : self.default_project end |
.default_project ⇒ Object
22 23 24 25 26 27 |
# File 'lib/xiki/projects.rb', line 22 def self.default_project txt = File.read(File. "~/menu/projects.menu") rescue nil return nil if ! txt Line.without_label(:line=>txt[/.+/]) end |
.menu ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/xiki/projects.rb', line 9 def self. " - This will never be called, because of projects.menu... - Think again of ways for .menu and .rb to work together creating menus - api/ " end |