Class: Bookbinder::Commands::Collection
- Inherits:
-
Object
- Object
- Bookbinder::Commands::Collection
- Includes:
- Enumerable
- Defined in:
- lib/bookbinder/commands/collection.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object
- #help ⇒ Object
-
#initialize(logger, streams, version_control_system) ⇒ Collection
constructor
A new instance of Collection.
Constructor Details
#initialize(logger, streams, version_control_system) ⇒ Collection
Returns a new instance of Collection.
35 36 37 38 39 |
# File 'lib/bookbinder/commands/collection.rb', line 35 def initialize(logger, streams, version_control_system) @logger = logger @streams = streams @version_control_system = version_control_system end |
Instance Method Details
#each(&block) ⇒ Object
41 42 43 |
# File 'lib/bookbinder/commands/collection.rb', line 41 def each(&block) list.each(&block) end |
#help ⇒ Object
45 46 47 48 49 50 |
# File 'lib/bookbinder/commands/collection.rb', line 45 def help @help ||= Commands::Help.new( logger, [version] + standard_commands ) end |