Class: String

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

Overview

Script which extends Ruby’s core functionality when parsed. Needs to be required separately using ‘require ’wgit/core_ext’‘.

Author:

  • Michael Telford

Direct Known Subclasses

Wgit::Url

Instance Method Summary collapse

Instance Method Details

#to_urlObject

Converts a String into a Wgit::Url object.



9
10
11
# File 'lib/wgit/core_ext.rb', line 9

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