Sha256: 384e65f301dc1dead8b3d9c4f9924dc81fc0dc8af658ca06210b39593abb889b
Contents?: true
Size: 442 Bytes
Versions: 2
Compression:
Stored size: 442 Bytes
Contents
require 'spruz/secure_write' module Spruz module Write def self.extended(modul) modul.extend SecureWrite if modul.respond_to?(:write) $DEBUG and warn "Skipping inclusion of Spruz::Write#write method, include Spruz::Write::SecureWrite#secure_write instead" else class << modul; self; end.instance_eval do alias_method :write, :secure_write end end super end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spruz-0.2.13 | lib/spruz/write.rb |
spruz-0.2.12 | lib/spruz/write.rb |