Module: AspectR::Aspect::AspectSupport::ClassSupport
- Defined in:
- lib/aspectr.rb
Instance Method Summary collapse
- #__aop_alias(new, old, private = true) ⇒ Object
- #__aop_class ⇒ Object
- #__aop_eval(text) ⇒ Object
- #__aop_mangle(method) ⇒ Object
- #__aop_private_methods ⇒ Object
- #__aop_target ⇒ Object
Instance Method Details
#__aop_alias(new, old, private = true) ⇒ Object
233 234 235 236 |
# File 'lib/aspectr.rb', line 233 def __aop_alias(new, old, private = true) alias_method new, old private new if private end |
#__aop_class ⇒ Object
225 226 227 |
# File 'lib/aspectr.rb', line 225 def __aop_class self end |
#__aop_eval(text) ⇒ Object
242 243 244 245 246 247 248 |
# File 'lib/aspectr.rb', line 242 def __aop_eval(text) begin class_eval text rescue Exception puts "class_eval '#{text}'" end end |
#__aop_mangle(method) ⇒ Object
229 230 231 |
# File 'lib/aspectr.rb', line 229 def __aop_mangle(method) "__aop__#{self.object_id}_#{method.object_id}" end |
#__aop_private_methods ⇒ Object
238 239 240 |
# File 'lib/aspectr.rb', line 238 def __aop_private_methods private_instance_methods end |
#__aop_target ⇒ Object
221 222 223 |
# File 'lib/aspectr.rb', line 221 def __aop_target "self.class" end |