Sha256: 5a39b1f6635a2772f22e4d81e53b744664818db61b5914d3de5ed47285f35d81

Contents?: true

Size: 352 Bytes

Versions: 6

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true

module Strict
  module Reader
    module Attributes
      def attributes(&block)
        block ||= -> {}
        configuration = Strict::Attributes::Dsl.run(&block)
        include Module.new(configuration)
        include Strict::Attributes::Instance
        extend Strict::Attributes::Class
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
strict-1.5.0 lib/strict/reader/attributes.rb
strict-1.4.0 lib/strict/reader/attributes.rb
strict-1.3.1 lib/strict/reader/attributes.rb
strict-1.3.0 lib/strict/reader/attributes.rb
strict-1.2.0 lib/strict/reader/attributes.rb
strict-1.1.0 lib/strict/reader/attributes.rb