Method: ActivityStream::Activity.define
- Defined in:
- lib/activity_stream/activity.rb
.define(name, &block) ⇒ ActivityStream::Definition
Returns the new definitions.
12 13 14 15 16 |
# File 'lib/activity_stream/activity.rb', line 12 def self.define(name, &block) definition = ActivityStream::DefinitionProxy.new(name) definition.instance_eval(&block) ActivityStream::Definition.register(definition) end |