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-1.4.3 spec/support/rails_directory.rb
rails_apps_composer-1.4.2 spec/support/rails_directory.rb
rails_apps_composer-1.4.1 spec/support/rails_directory.rb
ey_rails_wizard-0.6.0 spec/support/rails_directory.rb
ey_rails_wizard-0.5.0 spec/support/rails_directory.rb
ey_rails_wizard-0.4.0 spec/support/rails_directory.rb
ey_rails_wizard-0.3.1 spec/support/rails_directory.rb
rails_apps_composer-1.3.1 spec/support/rails_directory.rb
rails_apps_composer-1.2.1 spec/support/rails_directory.rb
rails_apps_composer-1.2.0 spec/support/rails_directory.rb
rails_apps_composer-1.1.8 spec/support/rails_directory.rb
rails_apps_composer-1.1.7 spec/support/rails_directory.rb
rails_apps_composer-1.1.6 spec/support/rails_directory.rb
rails_apps_composer-1.1.5 spec/support/rails_directory.rb
rails_apps_composer-1.1.4 spec/support/rails_directory.rb
rails_apps_composer-1.1.3 spec/support/rails_directory.rb
rails_apps_composer-1.1.2 spec/support/rails_directory.rb
rails_apps_composer-1.1.1 spec/support/rails_directory.rb
rails_apps_composer-1.1.0 spec/support/rails_directory.rb
rails_apps_composer-1.0.26 spec/support/rails_directory.rb