Class: Module

Inherits:
Object show all
Defined in:
mrblib/00class.rb

Instance Method Summary collapse

Instance Method Details

#attr_accessor(*names) ⇒ Object

15.2.2.4.12


3
4
5
6
# File 'mrblib/00class.rb', line 3

def attr_accessor(*names)
  attr_reader(*names)
  attr_writer(*names)
end

#include(*args) ⇒ Object

15.2.2.4.27


14
15
16
17
18
19
20
# File 'mrblib/00class.rb', line 14

def include(*args)
  args.reverse.each do |m|
    m.append_features(self)
    m.included(self)
  end
  self
end

#prepend(*args) ⇒ Object


22
23
24
25
26
27
28
# File 'mrblib/00class.rb', line 22

def prepend(*args)
  args.reverse.each do |m|
    m.prepend_features(self)
    m.prepended(self)
  end
  self
end