Class: Diggit::SourceEntry
- Inherits:
-
EntryWithRunnables
- Object
- EntryWithRunnables
- Diggit::SourceEntry
- Includes:
- EntryWithError
- Defined in:
- lib/dgit/entries.rb
Instance Attribute Summary collapse
-
#state ⇒ Object
Returns the value of attribute state.
Attributes included from EntryWithError
Attributes inherited from EntryWithRunnables
Instance Method Summary collapse
- #cloned? ⇒ Boolean
- #error? ⇒ Boolean
-
#initialize ⇒ SourceEntry
constructor
A new instance of SourceEntry.
- #new? ⇒ Boolean
Methods inherited from EntryWithRunnables
Constructor Details
#initialize ⇒ SourceEntry
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
#state ⇒ Object
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
138 139 140 |
# File 'lib/dgit/entries.rb', line 138 def cloned? @state == :cloned end |
#error? ⇒ Boolean
130 131 132 |
# File 'lib/dgit/entries.rb', line 130 def error? super || !@error.nil? end |
#new? ⇒ Boolean
134 135 136 |
# File 'lib/dgit/entries.rb', line 134 def new? @state == :new end |