Sha256: 00cc7d0c680256f6f652261f7b8eda65d54753587d4a05550040f9d22978460d

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

module JsSpec
  module Resources
    class Suite
      class << self
        def locate(id)
          new id
        end
      end

      attr_reader :id
      def initialize(id)
        @id = id
      end

      def locate(name)
        if name == 'finish'
          SuiteFinish.new self
        else
          raise ArgumentError, "Invalid path: #{name}"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
js_spec-0.2.0 lib/js_spec/resources/suite.rb
js_spec-0.2.1 lib/js_spec/resources/suite.rb