Class: Diggit::SourceEntry

Inherits:
EntryWithRunnables show all
Includes:
EntryWithError
Defined in:
lib/dgit/entries.rb

Instance Attribute Summary collapse

Attributes included from EntryWithError

#error

Attributes inherited from EntryWithRunnables

#canceled, #performed

Instance Method Summary collapse

Methods inherited from EntryWithRunnables

#clean, #has?

Constructor Details

#initializeSourceEntry

Returns a new instance of SourceEntry.



125
126
127
128
# File 'lib/dgit/entries.rb', line 125

def initialize
	super
	@state = :new
end

Instance Attribute Details

#stateObject

Returns the value of attribute state.



123
124
125
# File 'lib/dgit/entries.rb', line 123

def state
  @state
end

Instance Method Details

#cloned?Boolean

Returns:

  • (Boolean)


138
139
140
# File 'lib/dgit/entries.rb', line 138

def cloned?
	@state == :cloned
end

#error?Boolean

Returns:

  • (Boolean)


130
131
132
# File 'lib/dgit/entries.rb', line 130

def error?
	super || !@error.nil?
end

#new?Boolean

Returns:

  • (Boolean)


134
135
136
# File 'lib/dgit/entries.rb', line 134

def new?
	@state == :new
end