Sha256: d62ca040e35c2d7046b8e34a01e317c4b115466598526b192c2d07afc489d1d9
Contents?: true
Size: 471 Bytes
Versions: 7
Compression:
Stored size: 471 Bytes
Contents
$LOAD_PATH.unshift 'lib' $ruco_colors = true require 'ruco' require 'timeout' require 'tempfile' silence_warnings{ Ruco::Editor::Colors::DEFAULT_THEME = 'spec/fixtures/test.tmTheme' } class Tempfile def self.string_as_file(data) result = nil Tempfile.open('foo') do |f| f.print data f.close result = yield(f.path) end result end end class Time def self.benchmark t = Time.now.to_f yield Time.now.to_f - t end end
Version data entries
7 entries across 7 versions & 1 rubygems