Sha256: 2e1b46b17987a345a3646ed7887b240a7b3b5b5c672a1ab0f16cd629f7254afd

Contents?: true

Size: 247 Bytes

Versions: 5

Compression:

Stored size: 247 Bytes

Contents

require 'json_schema'
require 'json_schema/schema'

module JsonSchema
  class Schema
    def cromulent_links
      links.select(&:cromulent?)
    end

    class Link
      def cromulent?
        href && method && title
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
acter-0.2.0 lib/json_schema-cromulent_links.rb
acter-0.1.3 lib/json_schema-cromulent_links.rb
acter-0.1.2 lib/json_schema-cromulent_links.rb
acter-0.1.1 lib/json_schema-cromulent_links.rb
acter-0.1.0 lib/json_schema-cromulent_links.rb