Class: Markedly::CssAsset
Constant Summary
Constants inherited from Asset
Instance Attribute Summary
Attributes inherited from Asset
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path) ⇒ CssAsset
constructor
A new instance of CssAsset.
Methods inherited from Asset
Constructor Details
#initialize(path) ⇒ CssAsset
Returns a new instance of CssAsset.
48 49 50 |
# File 'lib/markedly/asset.rb', line 48 def initialize(path) super end |
Class Method Details
.asset(name) ⇒ Object
44 45 46 |
# File 'lib/markedly/asset.rb', line 44 def self.asset(name) assets.find { |asset| asset.name == name } end |
.assets ⇒ Object
40 41 42 |
# File 'lib/markedly/asset.rb', line 40 def self.assets Dir["#{Asset::ASSETS_DIR}/*.css"].map {|path| CssAsset.new(path) } end |