Sha256: 4202e25f80df8e43462057d7c84bfd2f2d51fdea6103166e3e0d0befa394d071
Contents?: true
Size: 456 Bytes
Versions: 4
Compression:
Stored size: 456 Bytes
Contents
class Object # Lists methods unique to an instance. def unique_methods (public_methods - Object.methods).sort.map(&:to_sym) end # Lists methods unique to a class. def self.unique_methods (public_methods - Object.methods).sort.map(&:to_sym) 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
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
automate-it-0.9.2 | lib/ext/object.rb |
automate-it-0.9.1 | lib/ext/object.rb |
automate-it-0.9.0 | lib/ext/object.rb |
automateit-0.80624 | lib/ext/object.rb |