Method: Inversion::Template#inspect
- Defined in:
- lib/inversion/template.rb
#inspect ⇒ Object
Return a human-readable representation of the template object suitable for debugging.
373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 |
# File 'lib/inversion/template.rb', line 373 def inspect nodemap = if $DEBUG ", node_tree: %p" % [ self.node_tree.map(&:as_comment_body) ] else '' end return "#<%s:%08x (loaded from %s) attributes: %p, options: %p%s>" % [ self.class.name, self.object_id / 2, self.source_file ? self.source_file : "memory", self.attributes.keys, self., nodemap ] end |