Class: Bookbinder::Commands::Collection

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/bookbinder/commands/collection.rb

Instance Method Summary collapse

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

#helpObject



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