Class: WB::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/wb/project.rb

Class Method Summary collapse

Class Method Details

.new_note(name) ⇒ Object



9
10
11
12
# File 'lib/wb/project.rb', line 9

def self.new_note(name)
  filename = [WB.config.project_date_format, name].compact.join("-")
  File.join(root, "#{filename}.#{WB.config.extension}")
end

.rootObject



5
6
7
# File 'lib/wb/project.rb', line 5

def self.root
  WB.config.project_root
end