Module: Lean::Attributes

Defined in:
lib/lean-attributes/attributes.rb,
lib/lean-attributes/version.rb,
lib/lean-attributes/attributes/attribute.rb,
lib/lean-attributes/attributes/initializer.rb,
lib/lean-attributes/attributes/class_methods.rb,
lib/lean-attributes/attributes/coercion_helpers.rb

Overview

Allows one to define typed, coercible attributes on Ruby classes with the attribute method.

See Also:

Since:

  • 0.0.1

Defined Under Namespace

Modules: Basic, ClassMethods, CoercionHelpers, Initializer Classes: Attribute

Constant Summary collapse

VERSION =
'0.3.1'

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

‘include Lean::Attributes` will add Basic functionality, in addition to Initializer

See Also:

Since:

  • 0.1.0



58
59
60
61
62
63
# File 'lib/lean-attributes/attributes.rb', line 58

def self.included(base)
  base.class_eval do
    include Basic
    include Initializer
  end
end