Class: Object

Inherits:
BasicObject
Defined in:
lib/main/stdext.rb,
lib/main/attributes.rb,
lib/main/pervasives.rb,
lib/main/pervasives.rb

Instance Method Summary collapse

Instance Method Details

#__pervasive__(m, *a, &b) ⇒ Object



26
27
28
# File 'lib/main/pervasives.rb', line 26

def __pervasive__ m, *a, &b
  Pervasives.call self, m, *a, &b
end

#attributes(*a, &b) ⇒ Object



101
102
103
104
105
106
107
# File 'lib/main/attributes.rb', line 101

def attributes *a, &b
  sc = 
    class << self
      self
    end
  sc.attributes *a, &b
end

#Pervasives(*a, &b) ⇒ Object



48
49
50
# File 'lib/main/pervasives.rb', line 48

def Pervasives *a, &b
  Proxy.new *a, &b
end

#singleton_class(object = self, &block) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/main/stdext.rb', line 11

def singleton_class object = self, &block
  sc =
    class << object
      self
    end
  block ? sc.module_eval(&block) : sc
end