Top Level Namespace
Defined Under Namespace
Modules: Cape
Instance Method Summary collapse
-
#Cape(&block) {|cape| ... } ⇒ Cape
The method used to group Cape statements.
Instance Method Details
#Cape(&block) {|cape| ... } ⇒ Cape
The method used to group Cape statements.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/cape.rb', line 42 def Cape(&block) Cape.module_eval do @outer_self = block.binding.eval('self', __FILE__, __LINE__) begin if 0 < block.arity block.call self else module_eval(&block) end ensure rake.expire_cache! end end Cape end |