Class: FlowNote
- Inherits:
-
Thor
- Object
- Thor
- FlowNote
- Defined in:
- lib/flow_note.rb
Constant Summary collapse
- FLOW_DIR =
ENV['FLOW_DIR']
Instance Method Summary collapse
Instance Method Details
#note(*body) ⇒ Object
8 9 10 11 12 |
# File 'lib/flow_note.rb', line 8 def note(*body) File.open("#{FLOW_DIR}/#{Time.now.strftime("%Y-%m-%d")}.md", 'a') do |f| f.write "[#{Time.now} | #{body.join(' ')}]" end end |
#show ⇒ Object
15 16 17 18 |
# File 'lib/flow_note.rb', line 15 def show build Launchy.open("file://#{FLOW_DIR}/show.html") end |