Sha256: 89aa9d95b38792ffa26e14a6a6026a198b103c7ec786771ef8fc888298864101
Contents?: true
Size: 453 Bytes
Versions: 2
Compression:
Stored size: 453 Bytes
Contents
require 'aquanaut/node' module Aquanaut # A page node represents an actual page in the specified domain. # class PageNode < Node attr_reader :uri def initialize(uri) @uri = uri super() end # Display method used on the front-end for the sitemap in list format. # def display part = "#{@uri.path}#{@uri.query}#{@uri.fragment}" part = @uri.to_s if part.empty? return part end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aquanaut-0.1.2 | lib/aquanaut/page_node.rb |
aquanaut-0.1.1 | lib/aquanaut/page_node.rb |