Sha256: 9de17e78a46ae8accbbfc88eb833b7775742dfaac71b2a2d04994507033a6900

Contents?: true

Size: 373 Bytes

Versions: 3

Compression:

Stored size: 373 Bytes

Contents

module Flutterby
  class Folder < Entity
    def read
      Dir[::File.join(fs_path, "*")].each do |entry|
        if entity = Flutterby.from(entry)
          children << entity
        end
      end
    end

    def write_static(path)
      Dir.mkdir(path) unless ::File.exists?(path)

      children.each do |child|
        child.export(path)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flutterby-0.0.10 lib/flutterby/folder.rb
flutterby-0.0.7 lib/flutterby/folder.rb
flutterby-0.0.6 lib/flutterby/folder.rb