Module: Kernel
- Defined in:
- lib/live/session.rb
Instance Method Summary collapse
-
#p(obj) ⇒ Object
:nodoc:.
-
#resilient_eval(*args) ⇒ Object
Calls Kernel#eval with the given args but catches posible errors.
Instance Method Details
#p(obj) ⇒ Object
:nodoc:
23 24 25 |
# File 'lib/live/session.rb', line 23 def p( obj ) #:nodoc: puts obj.to_live_output end |
#resilient_eval(*args) ⇒ Object
Calls Kernel#eval with the given args but catches posible errors
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/live/session.rb', line 11 def resilient_eval( *args ) begin begin eval( *args ) rescue SyntaxError => e e end rescue => e e end end |