Sha256: 88990b4f33d1b1a73e150afe36e2b2ae8387a823f62aaf834bf3758be8f65b09

Contents?: true

Size: 338 Bytes

Versions: 2

Compression:

Stored size: 338 Bytes

Contents

module Str2Duck

  module MPatch

    module String

      def duck(self_obj= self)
        Str2Duck.parse(self_obj)
      end
      alias :to_duck :duck

      self.instance_methods.each do |symbol|
        module_function symbol
        public symbol
      end

    end

  end

end

String.__send__( :include, Str2Duck::MPatch::String )

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
str2duck-1.3.1 lib/str2duck/mpatch/string.rb
str2duck-1.3.0 lib/str2duck/mpatch/string.rb