DSL for things which can be started and stopped
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/scala/org/helgoboss/capsule Improved Scaladoc Mar 30, 2013
.gitignore Refactoring, renamed container to scope Mar 10, 2013
LICENSE Improved Scaladoc Mar 30, 2013
README.md Update README.md Apr 3, 2013
pom.xml

README.md

Capsule

Capsule is a simple Scala API for building, using and extending a domain-specific language (DSL) for managing start and stop logic.

Example

A Capsule DSL utilization might look like this:

// Somewhere in your code
whenTurnedOn {
  whenDevicePluggedIn {
    lightLED()
  }
}

Documentation

Further reading

See project Domino for a real-world application of this API.