Class: GitUI::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/git_ui.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(k, d, &b) ⇒ Action

Returns a new instance of Action.



7
8
9
10
11
# File 'lib/git_ui.rb', line 7

def initialize(k, d, &b)
	@key = k
	@desc = d
	@block = b
end

Instance Attribute Details

#blockObject

Returns the value of attribute block.



6
7
8
# File 'lib/git_ui.rb', line 6

def block
  @block
end

#descObject

Returns the value of attribute desc.



6
7
8
# File 'lib/git_ui.rb', line 6

def desc
  @desc
end

#keyObject

Returns the value of attribute key.



6
7
8
# File 'lib/git_ui.rb', line 6

def key
  @key
end