class DTK::Common::GritAdapter::FileAccess::StatusMixin::Status
Constants
- FileStates
Public Class Methods
new(grit_status_obj)
click to toggle source
Calls superclass method
# File lib/grit_adapter/file_access/status.rb, line 27 def initialize(grit_status_obj) super() FileStates.each do |file_state| paths_with_file_state = grit_status_obj.send(file_state).map{|info|info[1].path} self[file_state] = paths_with_file_state unless paths_with_file_state.empty? end end
Public Instance Methods
any_changes?()
click to toggle source
# File lib/grit_adapter/file_access/status.rb, line 35 def any_changes?() !!FileStates.find{|fs|self[fs]} end