Module: Strict::Reader::Attributes

Defined in:
lib/strict/reader/attributes.rb

Instance Method Summary collapse

Instance Method Details

#attributes(&block) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/strict/reader/attributes.rb', line 6

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