Module: Petra::Proxies::EnumerableProxy::InstanceMethods
- Defined in:
- lib/petra/proxies/enumerable_proxy.rb
Instance Method Summary collapse
-
#each(&block) ⇒ Object
We have to define our own #each method for the singleton class’ Enumerable It basically just wraps the original enum’s entries in proxies and executes the “normal” #each.
Instance Method Details
#each(&block) ⇒ Object
We have to define our own #each method for the singleton class’ Enumerable It basically just wraps the original enum’s entries in proxies and executes the “normal” #each
23 24 25 |
# File 'lib/petra/proxies/enumerable_proxy.rb', line 23 def each(&block) Petra::Proxies::EnumerableProxy.proxy_entries(proxied_object).each(&block) end |