Sha256: c06dcdf63d9abd4d8f7d8556336484fdcc45e1e78106169e2a6cf192eefd2f83

Contents?: true

Size: 287 Bytes

Versions: 1

Compression:

Stored size: 287 Bytes

Contents

module ConceptQL
  module Behaviors
    module Preppable
      attr_accessor :prep_proc
      def prep
        prep_proc.call if prep_proc
      end

      def all(*args)
        prep
        super
      end

      def count(*args)
        prep
        super
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
conceptql-0.2.0 lib/conceptql/behaviors/preppable.rb