Module: RailsAssist::Artifact::Asset::TwoArgs::NameAndHash

Extended by:
FileName::Helper
Defined in:
lib/rails_artifactor/artifact/file_name/asset.rb

Class Method Summary collapse

Methods included from FileName::Helper

filename_name, filename_type, get_asset_type, get_type, type_from

Class Method Details

.get_asset_args(*args) ⇒ Object



159
160
161
162
163
164
165
166
167
168
# File 'lib/rails_artifactor/artifact/file_name/asset.rb', line 159

def self.get_asset_args *args
  args = args.flatten
  action = args.first.to_s

  hash = args.last
  folder = hash[:folder]
  type = get_asset_type(hash[:type] || folder)

  [folder, action, type]
end