Module: RailsAssist::Artifact::Asset::TwoArgs
- Defined in:
- lib/rails_artifactor/artifact/file_name/asset.rb
Defined Under Namespace
Modules: NameAndHash, TwoLabels
Class Method Summary collapse
Class Method Details
.get_asset_args(*args) ⇒ Object
129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/rails_artifactor/artifact/file_name/asset.rb', line 129 def self.get_asset_args *args args = args.flatten arg2 = args[1] res = case arg2 when String, Symbol # asset_file(:stylesheets, :show).should == /assets\/stylesheets\/show\.css/ TwoLabels.get_asset_args args when Hash # asset_file(:show, :folder => 'javascripts', :type => :js).should == /assets\/javascripts\/show\.js/ NameAndHash.get_asset_args args end end |