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
146 147 148 |
# File 'lib/plumb/types.rb', line 146 def self.call(type, separator = DEFAULT_SEPARATOR) type.invoke(:split, separator) >> Types::Array[String] end |
.for_type ⇒ Object
150 |
# File 'lib/plumb/types.rb', line 150 def self.for_type = ::String |
.helper ⇒ Object
151 |
# File 'lib/plumb/types.rb', line 151 def self.helper = false |