"Fossies" - the Fresh Open Source Software Archive

Member "groonga-10.0.8/vendor/ngx_mruby-source/mruby/mrblib/00class.rb" (27 Jun 2020, 583 Bytes) of package /linux/misc/groonga-10.0.8.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "00class.rb": 10.0.5_vs_10.0.6.

    1 class BasicObject
    2   def !=(other)
    3     if self == other
    4       false
    5     else
    6       true
    7     end
    8   end
    9 end
   10 
   11 class Module
   12    # 15.2.2.4.12
   13   def attr_accessor(*names)
   14     attr_reader(*names)
   15     attr_writer(*names)
   16   end
   17   # 15.2.2.4.11
   18   alias attr attr_reader
   19   #def attr(name)
   20   #  attr_reader(name)
   21   #end
   22 
   23   # 15.2.2.4.27
   24   def include(*args)
   25     args.reverse.each do |m|
   26       m.append_features(self)
   27       m.included(self)
   28     end
   29     self
   30   end
   31 
   32   def prepend(*args)
   33     args.reverse.each do |m|
   34       m.prepend_features(self)
   35       m.prepended(self)
   36     end
   37     self
   38   end
   39 end