Class: Hoss::Config::RegexpList Private
- Inherits:
-
Object
- Object
- Hoss::Config::RegexpList
- Defined in:
- lib/hoss/config/regexp_list.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #call(value) ⇒ Object private
Instance Method Details
#call(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 27 |
# File 'lib/hoss/config/regexp_list.rb', line 24 def call(value) value = value.is_a?(String) ? value.split(',') : Array(value) value.map(&Regexp.method(:new)) end |