Sha256: b7077c29564d131859cf53c348fa181aee6b3d6aa99c1f5919a191c1a39e34b9
Contents?: true
Size: 300 Bytes
Versions: 7
Compression:
Stored size: 300 Bytes
Contents
class Ld::Node attr_accessor :id, :depth, :name, :path ,:type, :suffix def initialize id, depth, path @id = id @depth = depth @path = path @type = File.directory?(path) ? 1 : 0 @name = File.basename path @suffix = @type == 1 ? nil : @name.split('.').last end end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
ld-0.1.9 | lib/ld/node.rb |
ld-0.1.8 | lib/ld/node.rb |
ld-0.1.7 | lib/ld/node.rb |
ld-0.1.6 | lib/ld/node.rb |
ld-0.1.2 | lib/ld/node.rb |
ld-0.1.1 | lib/ld/node.rb |
ld-0.1.0 | lib/ld/node.rb |