Sha256: 1d04f9ffb3f53aaa72002fbd55308557bc6e4016eec364a4b17aac3d55a7feef
Contents?: true
Size: 261 Bytes
Versions: 13
Compression:
Stored size: 261 Bytes
Contents
module Wikipedia class Url def initialize(wiki_url) @wiki_url = wiki_url end def title return @title if @title uri = URI.parse( @wiki_url ) @title = URI.decode( uri.path.split('/').last ) end end end
Version data entries
13 entries across 13 versions & 1 rubygems