Method: IndyDoc#save
- Defined in:
- lib/indydoc.rb
#save(filepath = @file) ⇒ Object
64 65 66 67 68 69 70 |
# File 'lib/indydoc.rb', line 64 def save(filepath=@file) raise 'IndyDoc#save: please supply a file path' if filepath.nil? @px ? px.save(filepath) : File.write(filepath, @px=self.to_px) puts 'saved' end |