Sha256: 1500e06a907c385ebbf6f5733744ec051a1c6bfc86ed7a704fa82d8f3c92cee3
Contents?: true
Size: 474 Bytes
Versions: 3
Compression:
Stored size: 474 Bytes
Contents
# allow logging of terminal commands def command command_to_run puts " " + command_to_run.yellow if $log_all_terminal_commands system command_to_run end # a nice puts def vputs text puts text.green if $verbose end class Array def listify length < 2 ? first.to_s : "#{self[0..-2] * ', '} and #{last}" end end module HashInit def initialize(*h) if h.length == 1 && h.first.kind_of?(Hash) h.first.each { |k,v| send("#{k}=",v) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-docstats-0.0.3 | lib/_utils.rb |
cocoapods-docstats-0.0.2 | lib/_utils.rb |
cocoapods-docstats-0.0.1 | lib/_utils.rb |