Sha256: 893d4c4668893472a3c38740fa0a54db7a6522a7cbc9195584b4c0462cfb30ae
Contents?: true
Size: 451 Bytes
Versions: 2
Compression:
Stored size: 451 Bytes
Contents
Dir.glob( File.expand_path( 'cape/*.rb', File.dirname( __FILE__ ))) do |f| require "cape/#{File.basename f, '.rb'}" end # Contains the implementation of Cape. module Cape extend DSL end # The method used to group Cape statements in a block. def Cape(&block) Cape.module_eval do @outer_self = block.binding.eval('self', __FILE__, __LINE__) if 0 < block.arity block.call self else module_eval(&block) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cape-1.0.1 | lib/cape.rb |
cape-1.0.0 | lib/cape.rb |