Module: ActiveAssets::ActiveExpansions::AssetScope
- Included in:
- Expansion, Expansions
- Defined in:
- lib/active_assets/active_expansions/asset_scope.rb
Instance Method Summary collapse
Instance Method Details
#css(&blk) ⇒ Object
15 16 17 |
# File 'lib/active_assets/active_expansions/asset_scope.rb', line 15 def css(&blk) current_type :css, &blk end |
#group(*groups, &blk) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/active_assets/active_expansions/asset_scope.rb', line 4 def group(*groups, &blk) @current_groups = groups instance_eval(&blk) ensure @current_groups = nil end |
#js(&blk) ⇒ Object
11 12 13 |
# File 'lib/active_assets/active_expansions/asset_scope.rb', line 11 def js(&blk) current_type :js, &blk end |