Module: Treat::Proxies::Numeric
- Includes:
- Proxy
- Defined in:
- lib/treat/proxies/number.rb
Overview
Install Treat functions on Numeric objects.
Instance Method Summary collapse
-
#to_entity(builder = nil) ⇒ Object
Return the entity corresponding to the number.
Methods included from Proxy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Treat::Proxies::Proxy
Instance Method Details
#to_entity(builder = nil) ⇒ Object
Return the entity corresponding to the number.
8 9 10 |
# File 'lib/treat/proxies/number.rb', line 8 def to_entity(builder = nil) Treat::Entities::Number.from_numeric(self) end |