Sha256: 750cc9117997bd313b2c3dd0296d3bf3d37f5722ae127b4ffe5dce5039a14cf3

Contents?: true

Size: 392 Bytes

Versions: 28

Compression:

Stored size: 392 Bytes

Contents

class Object
  #
  # Return this object's singleton class.
  #
  def singleton_class
    class << self; self; end
  end

  #
  # Return true if the given object include?-s this object.
  #
  def in?(object)
    object.include?(self)
  end
end

class String
  #
  # Remove a left margin delimited by '|'-characters.  Useful for
  # heredocs:
  #
  def demargin
    gsub(/^ *\|/, '')
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
looksee-5.0.0 spec/support/core_ext.rb
looksee-4.4.0 spec/support/core_ext.rb
looksee-4.2.0 spec/support/core_ext.rb
looksee-4.1.0 spec/support/core_ext.rb
looksee-4.0.0-universal-java-1.8 spec/support/core_ext.rb
looksee-4.0.0 spec/support/core_ext.rb
looksee-3.1.1 spec/support/core_ext.rb
looksee-3.1.0-universal-java-1.8 spec/support/core_ext.rb
looksee-3.1.0 spec/support/core_ext.rb
looksee-3.0.1-universal-java-1.8 spec/support/core_ext.rb
looksee-3.0.1 spec/support/core_ext.rb
looksee-3.0.0-universal-java-1.8 spec/support/core_ext.rb
looksee-3.0.0 spec/support/core_ext.rb
looksee-2.1.1-universal-java-1.6 spec/support/core_ext.rb
looksee-2.1.1 spec/support/core_ext.rb
looksee-2.1.0-universal-java-1.6 spec/support/core_ext.rb
looksee-2.1.0 spec/support/core_ext.rb
looksee-2.0.0-universal-java-1.6 spec/support/core_ext.rb
looksee-2.0.0 spec/support/core_ext.rb
looksee-1.1.0 spec/support/core_ext.rb