Advertisement
dsiver144

ZETA CORE

Jul 28th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #===============================================================================
  2. # * ZETA CORE
  3. # by dsiver144
  4. #===============================================================================
  5. module ZETA
  6. #----------------------------------------------------------------------------
  7. # * new method: view_object
  8. # - Use to view obejct variable name and its value (Easy for debuging)
  9. #----------------------------------------------------------------------------
  10. def view_object(object)
  11. object.instance_variables.each do |var_name|
  12. p "VAR NAME: #{var_name}"
  13. p instance_variable_get(var_name)
  14. end
  15. end
  16. end # DSIVER144
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement