Class: Ed::Delegator

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

Instance Method Summary collapse

Constructor Details

#initialize(delegate) ⇒ Delegator

Returns a new instance of Delegator.

Parameters:

  • delegate (Ed)

    An instance of Ed.



7
8
9
# File 'lib/ed/delegator.rb', line 7

def initialize delegate
  @__delegate__ = delegate
end

Instance Method Details

#commit(commit, &block) ⇒ void Also known as: tag, branch

This method returns an undefined value.

Parameters:

  • commit (String)

    A valid git commit, or git commit reference(tag or branch name).

  • block (Proc)

    Executed while the repository has switched to commit.



32
33
34
# File 'lib/ed/delegator.rb', line 32

def commit commit, &block
  @__delegate__.commit(commit, &block)
end

#setup(&block) ⇒ void

This method returns an undefined value.

Parameters:



18
19
20
# File 'lib/ed/delegator.rb', line 18

def setup &block
  @__delegate__.setup(&block)
end