Sha256: fb123b20554b2c83cf609480ff6aa0f3e119a69236f9dd91227f2336862276d0
Contents?: true
Size: 380 Bytes
Versions: 1
Compression:
Stored size: 380 Bytes
Contents
require 'epubber/models/cover' module Epubber::Models module Concerns module HasCover def cover(&block) @cover ||= nil return @cover unless block_given? @cover = Epubber::Models::Cover.new yield @cover end def contextified_cover return nil if cover.nil? return cover.contextify end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
epubber-0.2.0 | lib/epubber/models/concerns/has_cover.rb |