Sha256: de0c0ca958c3338d0c172bcd02674346cbc5a0e565a48e2067b74243bff8093a

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

require File.dirname(__FILE__) + '/../lib/ninja_decorators'

class NinjaClass
  include NinjaDecorators
  
  attr_accessor :ret
  
  around_filter :common_around, [:foo, :bar]
  
  def foo
    @ret += "foo"
  end
  
  def bar
    @ret += "bar"
  end
  
  private
  
  def common_around
    @ret = "common "
    yield
    @ret += " around"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
haruska-ninja-decorators-0.0.2 test/ninja_class.rb