Class: Cuporter::Node::Types::File
- Includes:
- FileSystemNode
- Defined in:
- lib/cuporter/node/types.rb
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#total ⇒ Object
just total self, don’t let any children total themselves.
Methods included from FileSystemNode
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? Dir # ensure folders sort higher fs_name <=> (other['fs_name'] || other['cuke_name']) end |
#total ⇒ Object
just total self, don’t let any children total themselves. This is so the feature won’t re-total itself when its containing file already has.
62 63 64 |
# File 'lib/cuporter/node/types.rb', line 62 def total total! end |