Sha256: ec064f159230144872b9bfce056abc25874a7252f4a8427d0003974710aa79f9

Contents?: true

Size: 307 Bytes

Versions: 5

Compression:

Stored size: 307 Bytes

Contents

module YARD::CodeObjects
  class ExtendedMethodObject
    instance_methods.each {|m| undef_method(m) unless m =~ /^__/ || m.to_sym == :object_id }
    
    def scope; :class end
    def initialize(obj) @del = obj end
    def method_missing(sym, *args, &block) @del.__send__(sym, *args, &block) end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yard-0.2.3.5 lib/yard/code_objects/extended_method_object.rb
yard-0.2.3.4 lib/yard/code_objects/extended_method_object.rb
yard-0.2.3.2 lib/yard/code_objects/extended_method_object.rb
yard-0.2.3.3 lib/yard/code_objects/extended_method_object.rb
yard-0.2.3 lib/yard/code_objects/extended_method_object.rb