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

Event::Api::OPTIONS

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Card::Set

reset

Methods included from I18nScope

#mod_name, #scope

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

#event

Instance Attribute Details

#assets_pathObject

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_nameObject

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_locationObject



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_pathObject



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

Returns:

  • (Boolean)


31
32
33
# File 'platypus/tmp/set/gem-defaults/mod018-assets/abstract/folder_group.rb', line 31

def minimize?
  @minimize = true
end

#pathsObject



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_pathsObject



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_pathObject



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