Class: Object
- Inherits:
-
BasicObject
- Defined in:
- lib/math-to-itex/support_parens.rb
Overview
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *a, &b) ⇒ Object
6
7
8
9
10
11
12
13
14
|
# File 'lib/math-to-itex/support_parens.rb', line 6
def method_missing(m, *a, &b)
klass = begin
(self.is_a?(Module) ? self : self.class).const_get(m)
rescue NameError
end
return klass.send(:parens, *a, &b) if klass.respond_to? :parens
orig_method_missing m, *a, &b
end
|
Instance Method Details
#orig_method_missing ⇒ Object
4
|
# File 'lib/math-to-itex/support_parens.rb', line 4
alias_method :orig_method_missing, :method_missing
|