Sha256: 710d59b3fbde626f68fb2b8408d3500edacdc0675110b0ec953fdacae51bc99e

Contents?: true

Size: 500 Bytes

Versions: 4

Compression:

Stored size: 500 Bytes

Contents

module Assert::RakeTasks
  class Irb

    def self.file_name
      "irb.rb"
    end

    def self.task_name
      :irb
    end

    def initialize(test_root)
      @test_root = test_root
    end

    def file_path
      File.join(@test_root.to_s, self.class.file_name)
    end

    def helper_exists?
      File.exists?(self.file_path)
    end

    def description
      "Open irb preloaded with #{self.file_path}"
    end

    def cmd
      "irb -rubygems -r ./#{self.file_path}"
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
assert-0.7.3 lib/assert/rake_tasks/irb.rb
assert-0.7.2 lib/assert/rake_tasks/irb.rb
assert-0.7.1 lib/assert/rake_tasks/irb.rb
assert-0.7.0 lib/assert/rake_tasks/irb.rb