Sha256: 736c467100e6948b17591ef51dd72c74d37d9ed7eb8cb6d87cf46c5fe729afd2
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 Bytes
Contents
require File.dirname(__FILE__) + "/../lib/contextr.rb" class AnyClass def test puts "base_method" end module InnerMethods def test puts "inner_pre" yield(:next) puts "inner_post" end end include InnerMethods => :test module OuterMethods def test puts "outer_pre" yield(:next) puts "outer_post" end end include OuterMethods => :test end ContextR::with_layer :test do AnyClass.new.test end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
contextr-0.1.0 | examples/ordering.rb |