Module: AllYourBase::Are::BelongToUs::From
- Defined in:
- lib/all_your_base/are/belong_to_us.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/all_your_base/are/belong_to_us.rb', line 7 def method_missing(sym, *args, &block) if sym.to_s.match(/\Afrom_base_([0-9]+)\Z/) AllYourBase::Are.convert_to_base_10(self.to_s, {:radix => $1.to_i}) else super # NoMethodError end end |