Sha256: 7b0a5f8eb27a946d75b23c98040e23d8aeeccdca5d52e4c21701d4b6c44e6987

Contents?: true

Size: 238 Bytes

Versions: 6

Compression:

Stored size: 238 Bytes

Contents

# frozen_string_literal: true

module Rustic::HooksExt
  include Console

  def before(&block)
    return @before if block.nil?

    @before = block
  end

  def after(&block)
    return @after if block.nil?

    @after = block
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rustic-0.5.0 lib/rustic/hooks_ext.rb
rustic-0.4.0 lib/rustic/hooks_ext.rb
rustic-0.3.3 lib/rustic/hooks_ext.rb
rustic-0.3.2 lib/rustic/hooks_ext.rb
rustic-0.3.1 lib/rustic/hooks_ext.rb
rustic-0.3.0 lib/rustic/hooks_ext.rb