Module: Card::Set::Abstract::FolderGroup
- Extended by:
- Card::Set
- Defined in:
- platypus/tmp/set/gem-defaults/mod018-assets/abstract/folder_group.rb
Overview
Set: Abstract (FolderGroup)
Constant Summary
Constants included from Helpers
Helpers::SET_PATTERN_TEST_REGEXP
Constants included from Event::Api
Instance Attribute Summary collapse
-
#assets_path ⇒ Object
Returns the value of attribute assets_path.
-
#group_name ⇒ Object
Returns the value of attribute group_name.
Class Method Summary collapse
Instance Method Summary collapse
-
#base_path ⇒ Object
-
#minimize? ⇒ Boolean
-
#paths ⇒ Object
-
#relative_paths ⇒ Object
-
#search_path ⇒ 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
Instance Attribute Details
#assets_path ⇒ Object
Returns the value of attribute assets_path.
8 9 10 |
# File 'platypus/tmp/set/gem-defaults/mod018-assets/abstract/folder_group.rb', line 8 def assets_path @assets_path end |
#group_name ⇒ Object
Returns the value of attribute group_name.
9 10 11 |
# File 'platypus/tmp/set/gem-defaults/mod018-assets/abstract/folder_group.rb', line 9 def group_name @group_name end |
Class Method Details
.source_location ⇒ Object
7 |
# File 'platypus/tmp/set/gem-defaults/mod018-assets/abstract/folder_group.rb', line 7 def self.source_location; "/Users/ethan/dev/decko/gem/mod/assets/set/abstract/folder_group.rb"; end |
Instance Method Details
#base_path ⇒ Object
27 28 29 |
# File 'platypus/tmp/set/gem-defaults/mod018-assets/abstract/folder_group.rb', line 27 def base_path assets_path end |
#minimize? ⇒ Boolean
31 32 33 |
# File 'platypus/tmp/set/gem-defaults/mod018-assets/abstract/folder_group.rb', line 31 def minimize? @minimize = true end |
#paths ⇒ Object
11 12 13 14 15 |
# File 'platypus/tmp/set/gem-defaults/mod018-assets/abstract/folder_group.rb', line 11 def paths return [] unless (path = assets_path) relative_paths.map { |child| ::File.join path, child } end |
#relative_paths ⇒ Object
17 18 19 20 21 |
# File 'platypus/tmp/set/gem-defaults/mod018-assets/abstract/folder_group.rb', line 17 def relative_paths return [] unless (path = assets_path) Dir.chdir(path) { Dir.glob(search_path).sort } end |
#search_path ⇒ Object
23 24 25 |
# File 'platypus/tmp/set/gem-defaults/mod018-assets/abstract/folder_group.rb', line 23 def search_path File.join "**", "*.{#{valid_file_extensions.join(',')}}" end |