Sha256: 76bfe11b11b414c9fd68ccd10dfbdbbacbc97536a1b42794bd5f2d50fcbf915a
Contents?: true
Size: 756 Bytes
Versions: 3
Compression:
Stored size: 756 Bytes
Contents
# encoding: UTF-8 module BEncodr module Ext def self.include! include_string! include_integer! include_list! include_dictionary! include_io! end private def self.include_string! ::String.send :include, Object [::String, Symbol, URI::Generic].each do |stringable| stringable.send :include, String end end def self.include_integer! [Numeric, Time].each do |intable| intable.send :include, Integer end end def self.include_list! Array.send :include, List end def self.include_dictionary! Hash.send :include, Dictionary end def self.include_io! ::IO.send :include, IO end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bencodr-3.0.2 | lib/bencodr/ext.rb |
bencodr-3.0.1 | lib/bencodr/ext.rb |
bencodr-3.0.0 | lib/bencodr/ext.rb |