Module Ramaze::CoreExtensions::Object
In: lib/ramaze/snippets/object/__dir__.rb
lib/ramaze/snippets/object/instance_variable_defined.rb
lib/ramaze/snippets/object/pretty.rb
lib/ramaze/snippets/object/scope.rb

Extensions for Object

Methods

Public Instance methods

This is similar to FILE and LINE, and returns a String representing the directory of the current file is. Unlike FILE the path returned is absolute.

This method is convenience for the

 File.expand_path(File.dirname(__FILE__))

idiom.

Returns the string that pretty_inspect would yield

returns a new clean binding for this object

Usage:

    eval 'self', object.scope  #=> returns object

[Validate]