Sha256: 7cf858bd2d9b992137261bf9f98d95c5e5debb144b189522cf5e6cfb9efcbcd6

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

require 'aquanaut/page_node'

module Aquanaut

  # An asset node is a node that represents a static asset. The type specifies
  # what kind of static asset it is, for instance image or stylesheet.
  class AssetNode < PageNode

    attr_reader :type

    # Constructor
    #
    # @param [URI] uri identifying the static asset uniquely.
    #
    # @param [String] type specifying the kind of static asset.
    #
    def initialize(uri, type)
      @type = type
      super(uri)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aquanaut-0.1.2 lib/aquanaut/asset_node.rb
aquanaut-0.1.1 lib/aquanaut/asset_node.rb