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.
123 124 125 126 |
# File 'lib/dgit/entries.rb', line 123 def initialize super @state = :new end |
Instance Attribute Details
#state ⇒ Object
Returns the value of attribute state.
121 122 123 |
# File 'lib/dgit/entries.rb', line 121 def state @state end |
Instance Method Details
#cloned? ⇒ Boolean
136 137 138 |
# File 'lib/dgit/entries.rb', line 136 def cloned? @state == :cloned end |
#error? ⇒ Boolean
128 129 130 |
# File 'lib/dgit/entries.rb', line 128 def error? super || !@error.nil? end |
#new? ⇒ Boolean
132 133 134 |
# File 'lib/dgit/entries.rb', line 132 def new? @state == :new end |