Sha256: a53ce352fce7086cfe1c9f4668cce3d1cd4b73e8c684cffb7b979986ced8dbb1
Contents?: true
Size: 667 Bytes
Versions: 1
Compression:
Stored size: 667 Bytes
Contents
require 'contents_core/blocks' require 'contents_core/engine' module ContentsCore def self.config( options = {} ) @@config.merge! options @@config end def self.create_block_in_parent( parent, type = :text, params = {} ) block = Block.new( block_type: type ) block.name = params[:name] if params[:name] block.options = params[:options] if params[:options] block.validations = params[:validations] if params[:validations] parent.cc_blocks << block Block::init_items block, params[:schema] if params[:schema] block end def self.editing( editing = nil ) @@editing = editing unless editing.nil? @@editing end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
contents_core-0.2.2 | lib/contents_core.rb |