method
    
    find_method_or_attribute
 
  
      v1_9_3_125 - 
      Show latest stable
 - 
    0 notes - 
    Class: MethodAttr
    
  
  
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (0)
- 2_2_9 (0)
- 2_4_6 (0)
- 2_5_5 (0)
- 2_6_3 (0)
- What's this?
find_method_or_attribute(name)
  public
  
    Hide source    
    
      
  
# File lib/rdoc/method_attr.rb, line 150 def find_method_or_attribute name # :nodoc: return nil unless parent.respond_to? :ancestors searched = parent.ancestors kernel = RDoc::TopLevel.all_modules_hash['Kernel'] searched << kernel if kernel && parent != kernel && !searched.include?(kernel) searched.each do |ancestor| next if parent == ancestor next if String === ancestor other = ancestor.find_method_named('#' << name) || ancestor.find_attribute_named(name) return other if other end nil end

 RSpec
RSpec Ruby on Rails
Ruby on Rails Ruby
Ruby 
   
   = private
 = private = protected
 = protected
  