Sha256: 3c80eab702d16b1460be5c07d9ad3909e5755f506031267bd23654c7df0d9d7a

Contents?: true

Size: 434 Bytes

Versions: 13

Compression:

Stored size: 434 Bytes

Contents

# frozen_string_literal: true

module DevSuite
  module DirectoryTree
    module Node
      class Base
        attr_reader :name

        def initialize(name)
          @name = name
        end

        def directory?
          false
        end

        def file?
          false
        end

        def children
          []
        end

        def hidden?
          @name.start_with?(".")
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dev_suite-0.2.13 lib/dev_suite/directory_tree/node/base.rb
dev_suite-0.2.12 lib/dev_suite/directory_tree/node/base.rb
dev_suite-0.2.11 lib/dev_suite/directory_tree/node/base.rb
dev_suite-0.2.10 lib/dev_suite/directory_tree/node/base.rb
dev_suite-0.2.9 lib/dev_suite/directory_tree/node/base.rb
dev_suite-0.2.8 lib/dev_suite/directory_tree/node/base.rb
dev_suite-0.2.7 lib/dev_suite/directory_tree/node/base.rb
dev_suite-0.2.6 lib/dev_suite/directory_tree/node/base.rb
dev_suite-0.2.5 lib/dev_suite/directory_tree/node/base.rb
dev_suite-0.2.4 lib/dev_suite/directory_tree/node/base.rb
dev_suite-0.2.3 lib/dev_suite/directory_tree/node/base.rb
dev_suite-0.2.2 lib/dev_suite/directory_tree/node/base.rb
dev_suite-0.2.1 lib/dev_suite/directory_tree/node/base.rb