Sha256: 41fbf06636b6c3dc8a04f5114ef9732b5fef3c17090008bbb6c1f305b629de83

Contents?: true

Size: 1.21 KB

Versions: 2

Compression:

Stored size: 1.21 KB

Contents

require 'jschematic/attributes/type'
require 'jschematic/attributes/properties'
require 'jschematic/attributes/pattern_properties'
require 'jschematic/attributes/additional_properties'
require 'jschematic/attributes/items'
require 'jschematic/attributes/additional_items'
require 'jschematic/attributes/required'
require 'jschematic/attributes/dependencies'
require 'jschematic/attributes/minimum'
require 'jschematic/attributes/maximum'
require 'jschematic/attributes/exclusive_minimum'
require 'jschematic/attributes/exclusive_maximum'
require 'jschematic/attributes/min_items'
require 'jschematic/attributes/max_items'
require 'jschematic/attributes/unique_items'
require 'jschematic/attributes/pattern'
require 'jschematic/attributes/min_length'
require 'jschematic/attributes/max_length'
require 'jschematic/attributes/enum'
require 'jschematic/attributes/format'
require 'jschematic/attributes/divisible_by'
require 'jschematic/attributes/disallow'
require 'jschematic/attributes/extends'
require 'jschematic/attributes/ref'

module Jschematic
  module Attributes
    def self.[](name)
      name_without_meta = name.gsub(/^\$/, '')
      const_get(name_without_meta[0].chr.capitalize + name_without_meta[1..-1])
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jschematic-0.1.0 lib/jschematic/attributes.rb
jschematic-0.0.9 lib/jschematic/attributes.rb