Sha256: 1a32c6aa70c1644cd2a87ffb558a1e74d090d42a74f85896a71557d02105a3a3
Contents?: true
Size: 495 Bytes
Versions: 2
Compression:
Stored size: 495 Bytes
Contents
# -*- encoding: utf-8 -*- module GitShizzle::Dsl class CommandContext def initialize(command) @command = command end def applies_to(&block) raise CommandDefinitionError.new(@command, '#applies_to requires a block.') unless block_given? @command.set_filter block end def action(&block) raise CommandDefinitionError.new(@command, '#action requires a block.') unless block_given? @command.set_action block end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
git_shizzle-0.2.8 | lib/git_shizzle/dsl/command_context.rb |
git_shizzle-0.2.6 | lib/git_shizzle/dsl/command_context.rb |