Class: Object

Inherits:
BasicObject
Defined in:
lib/view_source/view_source.rb

Instance Method Summary collapse

Instance Method Details

#grep_methods(pattern) ⇒ Object



8
9
10
# File 'lib/view_source/view_source.rb', line 8

def grep_methods(pattern)
  methods.grep pattern
end

#source_for_method(method) ⇒ Object



2
3
4
5
6
# File 'lib/view_source/view_source.rb', line 2

def source_for_method(method)
  location = self.method(method).source_location
  `mate #{location[0]} -l #{location[1]}` if location
  location
end