Class: WifiWand::Platforms::Mac::Helper::GitSkipWorktree::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/wifi_wand/platforms/mac/helper/git_skip_worktree.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pathsObject

Returns the value of attribute paths

Returns:

  • (Object)

    the current value of paths



41
42
43
# File 'lib/wifi_wand/platforms/mac/helper/git_skip_worktree.rb', line 41

def paths
  @paths
end

#tracked_entriesObject

Returns the value of attribute tracked_entries

Returns:

  • (Object)

    the current value of tracked_entries



41
42
43
# File 'lib/wifi_wand/platforms/mac/helper/git_skip_worktree.rb', line 41

def tracked_entries
  @tracked_entries
end

Instance Method Details

#skipped?Boolean

Returns:

  • (Boolean)


44
# File 'lib/wifi_wand/platforms/mac/helper/git_skip_worktree.rb', line 44

def skipped? = tracked_count.positive? && skipped_count == tracked_count

#skipped_countObject



42
# File 'lib/wifi_wand/platforms/mac/helper/git_skip_worktree.rb', line 42

def skipped_count = tracked_entries.count(&:skipped?)

#tracked_countObject



43
# File 'lib/wifi_wand/platforms/mac/helper/git_skip_worktree.rb', line 43

def tracked_count = tracked_entries.count