Class/Module Index [+]

Quicksearch

Kernel

Public Instance Methods

calling_method() click to toggle source
# File lib/twitter/core_ext/kernel.rb, line 3
def calling_method
  caller[1][/`([^']*)'/, 1].to_sym
end
class_eval(*args, &block) click to toggle source

class_eval on an object acts like singleton_class.class_eval.

# File lib/twitter/core_ext/kernel.rb, line 11
def class_eval(*args, &block)
  singleton_class.class_eval(*args, &block)
end
singleton_class() click to toggle source

Returns the object's singleton class (exists in Ruby 1.9.2)

# File lib/twitter/core_ext/kernel.rb, line 8
def singleton_class; class << self; self; end; end

[Validate]

Generated with the Darkfish Rdoc Generator 2.