Module: Enumerable
- Defined in:
- lib/wgit/core_ext.rb
Instance Method Summary collapse
-
#to_urls ⇒ Object
Converts each String instance into a Wgit::Url object and returns the new array.
-
#to_urls! ⇒ Object
Converts each String instance into a Wgit::Url object and returns the updated array.
Instance Method Details
#to_urls ⇒ Object
Converts each String instance into a Wgit::Url object and returns the new array.
17 18 19 20 21 |
# File 'lib/wgit/core_ext.rb', line 17 def to_urls map do |element| process_url_element(element) end end |
#to_urls! ⇒ Object
Converts each String instance into a Wgit::Url object and returns the updated array.
25 26 27 28 29 |
# File 'lib/wgit/core_ext.rb', line 25 def to_urls! map! do |element| process_url_element(element) end end |