Class: Aquanaut::AssetNode
- Defined in:
- lib/aquanaut/asset_node.rb
Overview
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.
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from PageNode
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(uri, type) ⇒ AssetNode
constructor
Constructor.
Methods inherited from PageNode
Methods inherited from Node
Constructor Details
#initialize(uri, type) ⇒ AssetNode
Constructor
17 18 19 20 |
# File 'lib/aquanaut/asset_node.rb', line 17 def initialize(uri, type) @type = type super(uri) end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
9 10 11 |
# File 'lib/aquanaut/asset_node.rb', line 9 def type @type end |