Module: EPUB::Inspector::PublicationModel
- Included in:
- Publication::Package::Bindings, Publication::Package::Guide, Publication::Package::Manifest, Publication::Package::Metadata, Publication::Package::Spine
- Defined in:
- lib/epub/inspector.rb
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
#inspect ⇒ Object
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 |