Sha256: d3c809153df7d1a62683aa08ed207cf380f9147ffd2ab62153cfec36b306f6ee
Contents?: true
Size: 995 Bytes
Versions: 3
Compression:
Stored size: 995 Bytes
Contents
require 'caracal/core/models/base_model' module Caracal module Core module Models # This class handles block options passed to tables via their data # collections. # class PageFlipModel < BaseModel #------------------------------------------------------------- # Configuration #------------------------------------------------------------- # initialization def initialize(options={}, &block) super options, &block end #------------------------------------------------------------- # Public Methods #------------------------------------------------------------- #=============== DATA ACCESSORS ======================= # .contents def contents @contents ||= [] end #=============== VALIDATION =========================== # .valid? def valid? contents.size > 0 end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems