Class: Waff::Commands::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/waff/commands/command.rb

Direct Known Subclasses

List, Pause, Show, Take

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



4
5
6
# File 'lib/waff/commands/command.rb', line 4

def params
  @params
end

Class Method Details

.call(*args) ⇒ Object



6
7
8
# File 'lib/waff/commands/command.rb', line 6

def self.call *args
  new.call(*args)
end

Instance Method Details

#github_repoObject



10
11
12
# File 'lib/waff/commands/command.rb', line 10

def github_repo
  @github_repo ||= Repository.new
end