Sha256: e5cd1bc466f148bf217b2d36211eef0ade448390d4813e786ae6ffead080ece2
Contents?: true
Size: 448 Bytes
Versions: 3
Compression:
Stored size: 448 Bytes
Contents
module Str2Duck module MPatch module Object def to_duck(self_obj= self) if self_obj.class <= String Str2Duck::MPatch::String.duck(self_obj) else return self_obj end end alias :duck :to_duck self.instance_methods.each do |symbol| module_function symbol public symbol end end end end Object.__send__( :include, Str2Duck::MPatch::Object )
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
str2duck-1.6.0 | lib/str2duck/mpatch/object.rb |
str2duck-1.5.0 | lib/str2duck/mpatch/object.rb |
str2duck-1.4.0 | lib/str2duck/mpatch/object.rb |