Module: Strict::Accessor::Attributes

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

Instance Method Summary collapse

Instance Method Details

#attributes(&block) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/strict/accessor/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