Module: LazyLazer

Defined in:
lib/lazy_lazer.rb,
lib/lazy_lazer/errors.rb,
lib/lazy_lazer/version.rb,
lib/lazy_lazer/key_metadata.rb,
lib/lazy_lazer/internal_model.rb,
lib/lazy_lazer/key_metadata_store.rb

Overview

LazyLazer. Include this module into your class to infuse it with lazer powers.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: InternalModel, KeyMetadata, KeyMetadataStore, MissingAttribute, ModelError, RequiredAttribute

Constant Summary collapse

VERSION =

The gem’s semantic version number.

'0.8.0'

Class Method Summary collapse

Class Method Details

.included(base) ⇒ void

This method returns an undefined value.

Hook into ‘include LazyLazer`.

Parameters:

  • base (Module)

    the object to include the methods in



20
21
22
23
24
# File 'lib/lazy_lazer.rb', line 20

def self.included(base)
  base.extend(ClassMethods)
  base.include(InstanceMethods)
  base.instance_variable_set(:@_lazer_metadata, KeyMetadataStore.new)
end