Module: EPUB::Inspector::PublicationModel

Constant Summary collapse

TEMPLATE =
"#<%{class}:%{object_id} @package=%{package} %{attributes}>"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(mod) ⇒ Object



30
31
32
# File 'lib/epub/inspector.rb', line 30

def included(mod)
  mod.__send__ :include, Inspector
end

Instance Method Details

#inspectObject



35
36
37
38
39
40
41
42
# File 'lib/epub/inspector.rb', line 35

def inspect
  TEMPLATE % {
    :class      => self.class,
    :package    => package.inspect_simply,
    :object_id  => inspect_object_id,
    :attributes => inspect_instance_variables(exclude: [:@package])
  }
end