Sha256: dd72870ce02645c6e24e51566e589db7bc3007cfc1aa14291996ccc73ad91268
Contents?: true
Size: 253 Bytes
Versions: 14
Compression:
Stored size: 253 Bytes
Contents
class Array # Extracts options from a set of arguments. Removes and returns the last # element in the array if it's a hash, otherwise returns a blank hash. def extract_options! if last.is_a?(Hash) pop else {} end end end
Version data entries
14 entries across 14 versions & 2 rubygems