Class: Cuporter::Node::Types::Dir

Inherits:
NodeBase
  • Object
show all
Includes:
FileSystemNode
Defined in:
lib/cuporter/node/types.rb

Instance Method Summary collapse

Methods included from FileSystemNode

#fs_name

Instance Method Details

#<=>(other) ⇒ Object



66
67
68
69
# File 'lib/cuporter/node/types.rb', line 66

def <=>(other)
  return -1 if other.is_a? File  # ensure folders sort higher
  fs_name <=> (other['fs_name'] || other['cuke_name'])
end