Sha256: ba8f59dbfef99c2bc6292eb47927a10d7ba002bcf9e042efc8adaa24a5d25e4f

Contents?: true

Size: 318 Bytes

Versions: 5

Compression:

Stored size: 318 Bytes

Contents

class Forgery
  def self.Extend(object)
    case object
    when Array
      Forgery::Extensions::Array.new(object)
    when Range
      Forgery::Extensions::Range.new(object.first, object.last, object.exclude_end?)
    when String
      Forgery::Extensions::String.new(object)
    else
      object
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
forgery-0.8.1 lib/forgery/extend.rb
forgery-0.7.0 lib/forgery/extend.rb
forgery-0.6.0 lib/forgery/extend.rb
forgery-0.5.0 lib/forgery/extend.rb
forgery-0.4.4 lib/forgery/extend.rb