Sha256: 45836a5acd927f8a6c6c69fdc36ab6912cc48e8787a1393e12e166807d98be7c
Contents?: true
Size: 451 Bytes
Versions: 2
Compression:
Stored size: 451 Bytes
Contents
# frozen_string_literal: true module Clowne module Declarations class AfterPersist < Base # :nodoc: all attr_reader :block def initialize raise ArgumentError, 'Block is required for after_persist' unless block_given? @block = Proc.new end def compile(plan) plan.add(:after_persist, self) end end end end Clowne::Declarations.add :after_persist, Clowne::Declarations::AfterPersist
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clowne-1.1.0 | lib/clowne/declarations/after_persist.rb |
clowne-1.0.0 | lib/clowne/declarations/after_persist.rb |