renamed info to MethodSource
This commit is contained in:
@ -159,7 +159,7 @@ module Parfait
|
||||
|
||||
#many basic List functions can not be defined in ruby, such as
|
||||
# get/set/length/add/delete
|
||||
# so they must be defined as CompiledMethods in Builtin::Kernel
|
||||
# so they must be defined as Methods in Builtin::Kernel
|
||||
|
||||
#ruby 2.1 list (just for reference, keep at bottom)
|
||||
# :at, :fetch, :first, :last, :concat, :<<, :push, :pop, :shift, :unshift, :insert, :each, :each_index, :reverse_each,
|
||||
|
@ -43,7 +43,7 @@ module Parfait
|
||||
found = get_instance_method( method.name )
|
||||
if found
|
||||
@instance_methods.delete(found)
|
||||
raise "existed in #{self.name} #{Sof.write found.info.blocks}"
|
||||
raise "existed in #{self.name} #{Sof.write found.source.blocks}"
|
||||
end
|
||||
@instance_methods.push method
|
||||
#puts "#{self.name} add #{method.name}"
|
||||
|
Reference in New Issue
Block a user