Sha256: 2c21f2cc3babac6c30b1bbc126f2e2f397100ec5c8f59a9363931dc5b3a2e81c

Contents?: true

Size: 222 Bytes

Versions: 15

Compression:

Stored size: 222 Bytes

Contents

module Restspec
  module Requirements
    class DSL
      def requirement(name, &definition)
        requirement = Requirement.get_or_create(name)
        requirement.instance_eval(&definition)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
restspec-0.3.2 lib/restspec/requirements/dsl.rb
restspec-0.3.1 lib/restspec/requirements/dsl.rb
restspec-0.3.0 lib/restspec/requirements/dsl.rb
restspec-0.2.6 lib/restspec/requirements/dsl.rb
restspec-0.2.5 lib/restspec/requirements/dsl.rb
restspec-0.2.4 lib/restspec/requirements/dsl.rb
restspec-0.2.3 lib/restspec/requirements/dsl.rb
restspec-0.2.2 lib/restspec/requirements/dsl.rb
restspec-0.2.1 lib/restspec/requirements/dsl.rb
restspec-0.2 lib/restspec/requirements/dsl.rb
restspec-0.1 lib/restspec/requirements/dsl.rb
restspec-0.0.4 lib/restspec/requirements/dsl.rb
restspec-0.0.3 lib/restspec/requirements/dsl.rb
restspec-0.0.2 lib/restspec/requirements/dsl.rb
restspec-0.0.1 lib/restspec/requirements/dsl.rb