Module: Card::Set::Abstract::StyleGroup
- Extended by:
- Card::Set
- Defined in:
- platypus/tmp/set/gem-defaults/mod022-style/abstract/style_group.rb
Overview
A list of styles defined by a manifest group or a “style” asset folder.
Defined Under Namespace
Modules: HtmlFormat, ScssFormat
Constant Summary
Constants included from Helpers
Helpers::SET_PATTERN_TEST_REGEXP
Constants included from Event::Api
Class Method Summary collapse
Instance Method Summary collapse
-
#asset_input_content ⇒ Object
-
#css_constants ⇒ Object
-
#new_asset_constants(path) ⇒ Object
-
#scss_constants ⇒ Object
-
#valid_file_extensions ⇒ 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
8 |
# File 'platypus/tmp/set/gem-defaults/mod022-style/abstract/style_group.rb', line 8 def self.source_location; "/Users/ethan/dev/decko/gem/mod/style/set/abstract/style_group.rb"; end |
Instance Method Details
#asset_input_content ⇒ Object
12 13 14 |
# File 'platypus/tmp/set/gem-defaults/mod022-style/abstract/style_group.rb', line 12 def asset_input_content format(:scss).render_core end |
#css_constants ⇒ Object
40 41 42 |
# File 'platypus/tmp/set/gem-defaults/mod022-style/abstract/style_group.rb', line 40 def css_constants { type_id: CssID, set_module: Abstract::AssetCss } end |
#new_asset_constants(path) ⇒ Object
28 29 30 31 32 33 34 |
# File 'platypus/tmp/set/gem-defaults/mod022-style/abstract/style_group.rb', line 28 def new_asset_constants path if path.ends_with? ".scss" scss_constants elsif path.ends_with? ".css" css_constants end end |
#scss_constants ⇒ Object
36 37 38 |
# File 'platypus/tmp/set/gem-defaults/mod022-style/abstract/style_group.rb', line 36 def scss_constants { type_id: ScssID, set_module: Abstract::AssetScss } end |
#valid_file_extensions ⇒ Object
24 25 26 |
# File 'platypus/tmp/set/gem-defaults/mod022-style/abstract/style_group.rb', line 24 def valid_file_extensions %w[css scss] end |