Skip to content
This repository was archived by the owner on May 8, 2018. It is now read-only.

Added a console method to save statements to a file. #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions script/console.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ def read
Api.get(path).body
end

#EDITED BY @MDOBS
def save
File.open("#{@id}", 'w') {|f| f.write(Api.get(path).body) }
end

def path
ROOT/id
end
Expand Down