Sha256: b9ebdd064ecb0bbed4bb82783f8b9d3607f650de2e9de9c2e653ba12ec567627
Contents?: true
Size: 419 Bytes
Versions: 3
Compression:
Stored size: 419 Bytes
Contents
module Bread class Command def initialize(controller) @controller = controller @controller._bread_trees = {} end def action(action_name, &block) parent_name = nil action_name, parent_name = action_name.first if action_name.is_a? Hash @controller._bread_trees[action_name] = {block: block, parent: @controller._bread_trees[parent_name]} end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bread-0.0.3 | lib/bread/command.rb |
bread-0.0.2 | lib/bread/command.rb |
bread-0.0.1 | lib/bread/command.rb |