Module: Card::Set::Abstract::ModAssets::HtmlFormat
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- platypus/tmp/set/gem-defaults/mod018-assets/abstract/mod_assets.rb
Instance Method Summary collapse
Instance Method Details
#map_remote_items ⇒ Object
166 167 168 169 170 171 |
# File 'platypus/tmp/set/gem-defaults/mod018-assets/abstract/mod_assets.rb', line 166 def map_remote_items remote_items = card.manifest_group_items "remote" return unless remote_items remote_items.map { |args| yield args.clone } end |
#view: core ⇒ Object
173 174 175 176 177 178 179 180 181 182 183 |
# File 'platypus/tmp/set/gem-defaults/mod018-assets/abstract/mod_assets.rb', line 173 view :core do groups = card.item_cards.map do |item| [item.cardname.tag, item.input_item_cards.map(&:name)] end if card.remote_group_urls.present? groups << ["group: remote", card.remote_group_urls.map { |remote| remote["src"] }] end haml :group_list, groups: groups end |