module EPUB::Inspector::PublicationModel

Public Class Methods

included(mod) click to toggle source
# File lib/epub/inspector.rb, line 29
def included(mod)
  mod.__send__ :include, Inspector
end

Public Instance Methods

inspect() click to toggle source
# File lib/epub/inspector.rb, line 34
def inspect
  template % {
    :class      => self.class,
    :package    => (package && package.inspect_simply),
    :object_id  => inspect_object_id,
    :attributes => inspect_instance_variables(exclude: [:@package])
  }
end
template() click to toggle source
# File lib/epub/inspector.rb, line 43
def template
  t = "#<%{class}:%{object_id}"
  t << " @package=%{package}" if package
  t << " %{attributes}>"
end