Sha256: 2ff8b423feeb86949ad799c50a37517d24bd39a1fbdbad7042abf5e82b91b008
Contents?: true
Size: 419 Bytes
Versions: 6
Compression:
Stored size: 419 Bytes
Contents
require 'epubber/models/introduction' module Epubber::Models::Concerns module HasIntroduction def introduction(&block) @introduction ||= nil return @introduction unless block_given? @introduction = Epubber::Models::Introduction.new yield @introduction end def contextified_introduction return nil if introduction.nil? return introduction.contextify end end end
Version data entries
6 entries across 6 versions & 1 rubygems