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



50
51
52
53
# File 'lib/cuporter/node/types.rb', line 50

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