Module: Card::Set::All::Recursed
- Extended by:
- Card::Set
- Defined in:
- platypus/tmp/set/gem-defaults/mod002-collection/all/recursed.rb
Overview
Set: All cards (Recursed)
Defined Under Namespace
Modules: Format
Constant Summary
Constants included from Helpers
Helpers::SET_PATTERN_TEST_REGEXP
Constants included from Event::Api
Class Method Summary collapse
Instance Method Summary collapse
-
#recursable_items? ⇒ Boolean
-
#recursed_item_cards(context = nil) ⇒ Object
-
#recursed_item_contents(context = nil) ⇒ Object
Methods included from Card::Set
Methods included from I18nScope
Methods included from Registrar
#extended, #finalize_load, #process_base_modules, #register_set
Methods included from Helpers
#format_module, #format_modules, #method_missing, #modules, #pattern_code, #respond_to_missing?, #set_name_parts, #shortname, #underscored_name
Methods included from Card::Set::AdvancedApi
#assign_type, #attachment, #define_set_from_error, #ensure_set, #setting_opts, #stage_method
Methods included from Format
#before, #format, layout_method_name, #view, view_method_name, view_setting_method_name, wrapper_method_name
Methods included from Inheritance
#include_set, #include_set_formats
Methods included from Trait
#card_accessor, #card_reader, #card_writer, #require_field
Methods included from Event::Api
Class Method Details
.source_location ⇒ Object
7 |
# File 'platypus/tmp/set/gem-defaults/mod002-collection/all/recursed.rb', line 7 def self.source_location; "/Users/ethan/dev/decko/gem/mod/collection/set/all/recursed.rb"; end |
Instance Method Details
#recursable_items? ⇒ Boolean
21 22 23 |
# File 'platypus/tmp/set/gem-defaults/mod002-collection/all/recursed.rb', line 21 def recursable_items? false end |
#recursed_item_cards(context = nil) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'platypus/tmp/set/gem-defaults/mod002-collection/all/recursed.rb', line 8 def recursed_item_cards context=nil list = [] book = ::Set.new # avoid loops items = recursable_items? ? item_cards(limit: "", context: (context&.name || name)) : [self] recurse_item_list items, list, book until items.empty? list end |
#recursed_item_contents(context = nil) ⇒ Object
17 18 19 |
# File 'platypus/tmp/set/gem-defaults/mod002-collection/all/recursed.rb', line 17 def recursed_item_contents context=nil recursed_item_cards(context).map(&:item_names).flatten end |