# File lib/gist/standalone.rb, line 26 def save(filename, path = '.') target = File.join(File.expand_path(path), filename) File.open(target, 'w') do |f| f.puts build f.chmod 0755 end end