Sha256: 0c26df5eade747d101c630a6b3658b94f7f1b8755c427a0159af4dc38e63a794
Contents?: true
Size: 260 Bytes
Versions: 2
Compression:
Stored size: 260 Bytes
Contents
require 'sugar-high/delegate' class Actor def act 'actor' end end class Context delegate :act, :to => :actor def actor Actor.new end end describe 'delegate NOT already defined' do specify { Context.new.act.should == 'actor' } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sugar-high-0.6.3 | spec/sugar-high/delegate_spec.rb |
sugar-high-0.6.2.1 | spec/sugar-high/delegate_spec.rb |