Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/gg/core.rb
Instance Method Summary collapse
Instance Method Details
#to_hi_html(history) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/gg/core.rb', line 48 def to_hi_html(history) return "...recursive..." if history[self] history[self] = true if self.instance_variables.size == 0 GG.render('slim/object.slim', object: self, classname: "hi-#{ self.class }", history: history ) else GG.render('slim/object_with_instance_variables.slim', object: self, classname: "hi-#{ self.class }", history: history ) end # Rack::Utils.escape_html( self.inspect ) end |