callback
Version, currently 0.1.018 versions
- 0.9.2latestOct 30, 2021
- 0.9.1not indexedOct 30, 2021
- 0.7.1not indexedOct 30, 2021
- 0.7.0not indexedOct 30, 2021
- 0.6.3not indexedOct 30, 2021
- 0.6.2not indexedOct 30, 2021
- 0.6.1not indexedOct 30, 2021
- 0.6.0not indexedOct 30, 2021
- 0.5.1not indexedOct 30, 2021
- 0.5.0not indexedOct 30, 2021
- 0.5.0.1not indexedOct 30, 2021
- 0.4.1not indexedOct 30, 2021
- 0.4.0not indexedOct 30, 2021
- 0.4.0.2not indexedOct 30, 2021
- 0.4.0.1not indexedOct 30, 2021
- 0.3.0not indexedOct 30, 2021
- 0.2.0not indexedOct 30, 2021
- 0.1.0not indexedOct 30, 2021
github.com/amberframework/callback
A Crystal library for defining and invoking callbacks.
Nothing has been indexed for 0.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
callback:
github: amberframework/callback
version: ~> 0.1.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
Crystal Callback
A Crystal library for defining and invoking callbacks.
Installation
Add this to your application's shard.yml:
dependencies:
callback:
github: mosop/callback
Usage
require "callback"
class Record
Callback.enable
define_callback_group :save
before_save do
puts "before"
end
around_save do
puts "around"
end
after_save do
puts "after"
end
on_save do
puts "on"
end
def save
run_callbacks_for_save do
puts "yield"
end
end
end
rec = Record.new
rec.save
This prints:
before
around
on
yield
around
after
For more detail, see Wiki
Release Notes
See Releases.
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Oct 30, 2021
- Commit
9b5538b44c2e- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/amberframework/callback
Metadata
- Created
- Aug 16, 2026
- Updated
- Aug 16, 2026
- Synced
- Aug 16, 2026
- Versions
- 18