Sha256: ee84e7d7e425f3aa36ad86856378b6e1b20f14c6e7ef5f4fe1a49533905fda8d

Contents?: true

Size: 598 Bytes

Versions: 36

Compression:

Stored size: 598 Bytes

Contents

module Inch
  module Evaluation
    # An ObjectSchema describes how important certain parts of the docs are
    # for the associated Object
    class ObjectSchema
      extend Utils::ReadWriteMethods

      rw_methods %w(
        docstring
        parameters
        return_type
        return_description
        code_example_single
        code_example_multi
        unconsidered_tag
        )

      attr_reader :object

      def initialize(&block)
        @block = block
      end

      def evaluate(object)
        @object = object
        instance_eval(&@block)
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
inch-0.5.0.rc3 lib/inch/evaluation/object_schema.rb
inch-0.5.0.rc2 lib/inch/evaluation/object_schema.rb
inch-0.5.0.rc1 lib/inch/evaluation/object_schema.rb
inch-0.4.6 lib/inch/evaluation/object_schema.rb
inch-0.4.5 lib/inch/evaluation/object_schema.rb
inch-0.4.4 lib/inch/evaluation/object_schema.rb
inch-0.4.4.rc4 lib/inch/evaluation/object_schema.rb
inch-0.4.4.rc3 lib/inch/evaluation/object_schema.rb
inch-0.4.4.rc2 lib/inch/evaluation/object_schema.rb
inch-0.4.4.rc1 lib/inch/evaluation/object_schema.rb
inch-0.4.3 lib/inch/evaluation/object_schema.rb
inch-0.4.3.rc2 lib/inch/evaluation/object_schema.rb
inch-0.4.3.rc1 lib/inch/evaluation/object_schema.rb
inch-0.4.2 lib/inch/evaluation/object_schema.rb
inch-0.4.1 lib/inch/evaluation/object_schema.rb
inch-0.4.0 lib/inch/evaluation/object_schema.rb
inch-0.4.0.rc3 lib/inch/evaluation/object_schema.rb
inch-0.4.0.rc2 lib/inch/evaluation/object_schema.rb
inch-0.4.0.rc1 lib/inch/evaluation/object_schema.rb
inch-0.3.4.rc1 lib/inch/evaluation/object_schema.rb