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