Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/wgit/core_ext.rb

Overview

Extend the standard String functionality.

Direct Known Subclasses

Wgit::Url

Instance Method Summary collapse

Instance Method Details

#to_urlWgit::Url

Converts a String into a Wgit::Url object.

Returns:



13
14
15
# File 'lib/wgit/core_ext.rb', line 13

def to_url
  Wgit::Url.parse(self)
end