代码搜索:methods

找到约 10,000 项符合「methods」的源代码

代码结果 10,000
www.eeworm.com/read/275831/10794424

rb 02 - listing methods unique to an object.rb

class Object def my_methods_only my_super = self.class.superclass return my_super ? methods - my_super.instance_methods : methods end end s = '' s.methods.size
www.eeworm.com/read/147693/12538545

pl fig23_5.pl

% Figure 23.5 A simple interpreter for object-oriented programs. % An interpreter for object-oriented programs % send( Message, Object) if % find Object's methods and % execute t
www.eeworm.com/read/169400/5422230

cs codecoveragenamespacetreenode.cs

// // // // //
www.eeworm.com/read/275831/10794242

rb 17 - implementing class and singleton methods.rb

class Regexp def Regexp.is_valid?(str) begin compile(str) valid = true rescue RegexpError valid = false end end end Regexp.is_valid? "The horror!"
www.eeworm.com/read/275831/10794427

rb 01 - listing an object's methods.rb

Object.methods # => ["name", "private_class_method", "object_id", "new", # "singleton_methods", "method_defined?", "equal?", ... ] #--- Object.singleton_methods # => [] Fixn