Class: Object

Inherits:
BasicObject
Defined in:
lib/rui/utils.rb

Overview

Copyright © 2009-2010 Paolo Capriotti <[email protected]>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

Instance Method Summary collapse

Instance Method Details

#metaclassObject



9
10
11
12
13
# File 'lib/rui/utils.rb', line 9

def metaclass
  class << self
    self
  end
end

#metaclass_eval(&blk) ⇒ Object



15
16
17
# File 'lib/rui/utils.rb', line 15

def metaclass_eval(&blk)
  metaclass.instance_eval(&blk)
end