Sha256: febafac465916bfed955eb2e9f61bf85d3442d9b14a6744f3363457745b28cf6
Contents?: true
Size: 553 Bytes
Versions: 15
Compression:
Stored size: 553 Bytes
Contents
module Tap module Generator # Manifest records methods called upon it using method_missing. These # actions are replayed on a generator in order (for generate) or in # reverse order (for destroy). class Manifest # Makes a new Manifest. Method calls on self are recorded to actions. def initialize(actions) @actions = actions end # Records an action. def method_missing(action, *args, &block) @actions << [action, args, block] end end end end
Version data entries
15 entries across 15 versions & 2 rubygems