Class: OpenWFE::ObjectWithMeta
- Inherits:
-
Object
- Object
- OpenWFE::ObjectWithMeta
show all
- Defined in:
- lib/openwfe/util/ometa.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
54
55
56
|
# File 'lib/openwfe/util/ometa.rb', line 54
def self.meta_def method_name, &block
meta_eval { define_method method_name, &block }
end
|
51
52
53
|
# File 'lib/openwfe/util/ometa.rb', line 51
def self.meta_eval &block
metaclass.instance_eval &block
end
|
46
47
48
49
50
|
# File 'lib/openwfe/util/ometa.rb', line 46
def self.metaclass
class << self
self
end
end
|
Instance Method Details
#class_def(method_name, &block) ⇒ Object
57
58
59
|
# File 'lib/openwfe/util/ometa.rb', line 57
def class_def method_name, &block
class_eval { define_method name, &block }
end
|