Class: Ro::Node::Asset
- Inherits:
-
String
- Object
- String
- Ro::Node::Asset
- Defined in:
- lib/ro/node.rb
Constant Summary collapse
- IMAGE_RE =
%r/[.](jpg|jpeg|png|gif|tif|tiff)$/i
Instance Method Summary collapse
- #image? ⇒ Boolean
-
#initialize(name, options = {}) ⇒ Asset
constructor
A new instance of Asset.
- #name ⇒ Object
Constructor Details
#initialize(name, options = {}) ⇒ Asset
Returns a new instance of Asset.
117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/ro/node.rb', line 117 def initialize(name, = {}) super(name) ensure = Map.for() Asset.fattrs.each do |attr| if .has_key?(attr) value = [attr] send(attr, value) end end end |
Instance Method Details
#name ⇒ Object
130 131 132 |
# File 'lib/ro/node.rb', line 130 def name self end |