Sha256: f98a05215efb3c41eb02a5aaeee9585d5b5dbf6c730dea25ba5ae3421cb71f8c

Contents?: true

Size: 247 Bytes

Versions: 295

Compression:

Stored size: 247 Bytes

Contents

class RailsDirectory
  def initialize(path)
    @path = path
  end

  def file_path(path)
    File.join(@path, path)
  end

  def has_file?(path)
    File.exist?(file_path(path))
  end

  def [](path)
    File.open(file_path(path)).read
  end
end

Version data entries

295 entries across 295 versions & 9 rubygems

Version Path
rails_apps_composer-2.4.41 spec/support/rails_directory.rb
rails_apps_composer-2.4.40 spec/support/rails_directory.rb
rails_apps_composer-2.4.39 spec/support/rails_directory.rb
rails_apps_composer-2.4.38 spec/support/rails_directory.rb
rails_apps_composer-2.4.37 spec/support/rails_directory.rb
rails_apps_composer-2.4.36 spec/support/rails_directory.rb
rails_apps_composer-2.4.35 spec/support/rails_directory.rb
rails_apps_composer-2.4.34 spec/support/rails_directory.rb
rails_apps_composer-2.4.33 spec/support/rails_directory.rb
rails_apps_composer-2.4.32 spec/support/rails_directory.rb
rails_apps_composer-2.4.31 spec/support/rails_directory.rb
rails_apps_composer-2.4.30 spec/support/rails_directory.rb
rails_apps_composer-2.4.29 spec/support/rails_directory.rb
rails_apps_composer-2.4.28 spec/support/rails_directory.rb
rails_apps_composer-2.4.27 spec/support/rails_directory.rb
rails_apps_composer-2.4.26 spec/support/rails_directory.rb
rails_apps_composer-2.4.25 spec/support/rails_directory.rb
rails_apps_composer-2.4.24 spec/support/rails_directory.rb
rails_apps_composer-2.4.23 spec/support/rails_directory.rb
rails_apps_composer-2.4.22 spec/support/rails_directory.rb