Sha256: 9225985e9b53adc41e55d3130e630ac4229a282d43ef7ef3feef301c0a22dd23
Contents?: true
Size: 289 Bytes
Versions: 1
Compression:
Stored size: 289 Bytes
Contents
module TTY module Utils extend self def extract_options!(args) args.last.respond_to?(:to_hash) ? args.pop : {} end def extract_options(args) options = args.last options.respond_to?(:to_hash) ? options.to_hash.dup : {} end end # Utils end # TTY
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tty-0.0.1 | lib/tty/support/utils.rb |