Module: Plumb::SplitPolicy
- Defined in:
- lib/plumb/types.rb
Overview
Constant Summary collapse
- DEFAULT_SEPARATOR =
/\s*,\s*/
Class Method Summary collapse
Class Method Details
.call(type, separator = DEFAULT_SEPARATOR) ⇒ Object
122 123 124 |
# File 'lib/plumb/types.rb', line 122 def self.call(type, separator = DEFAULT_SEPARATOR) type.invoke(:split, separator) >> Types::Array[String] end |
.for_type ⇒ Object
126 |
# File 'lib/plumb/types.rb', line 126 def self.for_type = ::String |
.helper ⇒ Object
127 |
# File 'lib/plumb/types.rb', line 127 def self.helper = false |