Module: Xpub
- Defined in:
- lib/xpub/dsl/page.rb,
lib/xpub.rb,
lib/xpub/version.rb,
lib/xpub/dsl/book.rb,
lib/xpub/dsl/builder.rb,
lib/xpub/dsl/checker.rb,
lib/xpub/dsl/src_file.rb,
lib/xpub/dsl_accessor.rb
Overview
Xpub module
Defined Under Namespace
Modules: DslAccessor Classes: BookManager, CallBook
Constant Summary collapse
- VERSION =
'0.0.8'.freeze
Class Method Summary collapse
Class Method Details
.book(name, &block) ⇒ Object
93 94 95 96 97 98 |
# File 'lib/xpub/dsl/book.rb', line 93 def self.book(name, &block) call = CallBook.new name call.instance_eval(&block) if block call.validate BookManager.instance.add call end |