lib/epubber/models/concerns/has_introduction.rb in epubber-0.1.5 vs lib/epubber/models/concerns/has_introduction.rb in epubber-0.2.0
- old
+ new
@@ -1,17 +1,19 @@
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
+module Epubber::Models
+ module 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
+ def contextified_introduction
+ return nil if introduction.nil?
+ return introduction.contextify
+ end
end
end
end