Module: Card::Set::Type::Image
- Extended by:
- Card::Set
- Includes:
- File::SelectedAction
- Defined in:
- platypus/tmp/set/gem-defaults/mod016-carrierwave/type/image.rb,
platypus/tmp/set/gem-defaults/mod023-bar_and_box/type/image.rb,
platypus/tmp/set/gem-defaults/mod016-carrierwave/type/image/html_views.rb
Overview
Set: All “Image” cards
Defined Under Namespace
Modules: CssFormat, EmailHtmlFormat, FileFormat, Format, HtmlFormat, HtmlViews, JsonFormat
Constant Summary collapse
- IMAGE_BOX_SIZE_MAP =
{ icon: :icon, small: :small, medium: :small, large: :medium, xlarge: :medium }.freeze
Constants included from Helpers
Helpers::SET_PATTERN_TEST_REGEXP
Constants included from Event::Api
Class Method Summary collapse
Instance Method Summary collapse
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 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 Card::Set::Trait
#card_accessor, #card_reader, #card_writer, #require_field
Methods included from Event::Api
Methods included from File::SelectedAction
#last_content_action_id, #select_action_by_params
Class Method Details
.source_location ⇒ Object
7 |
# File 'platypus/tmp/set/gem-defaults/mod016-carrierwave/type/image.rb', line 7 def self.source_location; "/Users/ethan/dev/decko/gem/mod/carrierwave/set/type/image.rb"; end |
Instance Method Details
#create_versions?(new_file) ⇒ Boolean
12 13 14 |
# File 'platypus/tmp/set/gem-defaults/mod016-carrierwave/type/image.rb', line 12 def create_versions? new_file new_file.extension != "svg" end |
#svg? ⇒ Boolean
16 17 18 |
# File 'platypus/tmp/set/gem-defaults/mod016-carrierwave/type/image.rb', line 16 def svg? image&.extension == ".svg" end |