Class: Breeze::SectionStyle

Inherits:
Style show all
Defined in:
app/models/breeze/section_style.rb

Instance Attribute Summary

Attributes inherited from ActiveYaml

#data

Instance Method Summary collapse

Methods inherited from Style

#options_definitions

Methods inherited from SharedBase

load_file

Methods inherited from ActiveYaml

all, append, define_access, define_association, delete, fields, find, find_all, find_by, first, full_path, #id, #id=, #initialize, load_file, #persisted?, primary_key, reload, save_all, set_root_path, the_meta_class

Constructor Details

This class inherits a constructor from Breeze::ActiveYaml

Instance Method Details

#has_cards?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'app/models/breeze/section_style.rb', line 8

def has_cards?
  cards
end

#section_previewObject



12
13
14
# File 'app/models/breeze/section_style.rb', line 12

def section_preview
  "breeze/section_preview/" + template
end