Sha256: 11a0612433a3b9609867aaa7e453b8788d28aa9a2ad8cf80e075fdcf3e992485

Contents?: true

Size: 428 Bytes

Versions: 27

Compression:

Stored size: 428 Bytes

Contents

class Object
  # Lists methods unique to an instance.
  def unique_methods
    (public_methods - Object.methods).sort
  end

  # Lists methods unique to a class.
  def self.unique_methods
    (public_methods - Object.methods).sort
  end

  # Returns a list of arguments and an options hash. Source taken from RSpec.
  def args_and_opts(*args)
    options = Hash === args.last ? args.pop : {}
    return args, options
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
automateit-0.70930 lib/ext/object.rb
automateit-0.70923 lib/ext/object.rb
automateit-0.70928 lib/ext/object.rb
automateit-0.71003 lib/ext/object.rb
automateit-0.71021 lib/ext/object.rb
automateit-0.71030 lib/ext/object.rb
automateit-0.71031.2 lib/ext/object.rb
automateit-0.71031.1 lib/ext/object.rb
automateit-0.71006 lib/ext/object.rb
automateit-0.71012 lib/ext/object.rb
automateit-0.71017 lib/ext/object.rb
automateit-0.71101.2 lib/ext/object.rb
automateit-0.71031 lib/ext/object.rb
automateit-0.71101 lib/ext/object.rb
automateit-0.71102 lib/ext/object.rb
automateit-0.71101.1 lib/ext/object.rb
automateit-0.71103 lib/ext/object.rb
automateit-0.71112 lib/ext/object.rb
automateit-0.71219 lib/ext/object.rb
automateit-0.71220 lib/ext/object.rb