Sha256: 419f033a33cfe97c6f13b4058b5459d4b79b4c6d7092cf9aacc7753645abbb1e
Contents?: true
Size: 471 Bytes
Versions: 5
Compression:
Stored size: 471 Bytes
Contents
require "tempfile" module Sublayer module Capabilities module HumanAssistance def human_assistance_with(string_to_assist_with) tempfile = Tempfile.new("some_tempfile_to_assist_with") tempfile.write(string_to_assist_with) tempfile.close system("$EDITOR #{tempfile.path}") tempfile.open results = tempfile.read tempfile.close tempfile.unlink results.chomp end end end end
Version data entries
5 entries across 5 versions & 1 rubygems