Sha256: 0c7f2b7a4562038b015550e01b5cb4aef4f4123718b4dfcd0e2b508398879bae
Contents?: true
Size: 288 Bytes
Versions: 14
Compression:
Stored size: 288 Bytes
Contents
class Array def args flatten.map{|a| a.args}.flatten end end class Symbol def args [to_s] end end class String def args (self =~ /\w+\s+\w+/) ? self.split : self end end def last_option *args last = args.flatten.last last.kind_of?(Hash) ? last : {} end
Version data entries
14 entries across 14 versions & 1 rubygems