Method: OpenStax::Content::BookPart#initialize

Defined in:
lib/openstax/content/book_part.rb

#initialize(hash: {}, is_root: false, book: nil) ⇒ BookPart

Returns a new instance of BookPart.



5
6
7
8
9
# File 'lib/openstax/content/book_part.rb', line 5

def initialize(hash: {}, is_root: false, book: nil)
  @hash = hash
  @is_root = is_root
  @book = book
end