Method: Sheet::Write#write
- Defined in:
- lib/sheet/write.rb
#write ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/sheet/write.rb', line 9 def write return Sheet.display("Please specify a name") unless name create_dir_if_doesnt_exist if editor_is_set? Sheet.exec("#{Sheet.editor} #{Sheet.sheet_path(name)}", true) else Sheet.display "Please set the $EDITOR variable to write files" end end |