Sha256: 4f69597d2e76db1fe9b43fc7eb838a863a180d1e476ed2a17750197fa4297ce8
Contents?: true
Size: 393 Bytes
Versions: 20
Compression:
Stored size: 393 Bytes
Contents
module Relish module Command module ParamMethods def extract_option include?(':') ? split(':')[1] : self end def without_option split(':')[0] end def has_option? include?(':') end def extract_project_handle self && (has_option? ? true : nil) && without_option end end end end
Version data entries
20 entries across 20 versions & 1 rubygems