Class: SmartCore::Container::DefinitionDSL::Commands::Base Private

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_core/container/definition_dsl/commands/base.rb

Overview

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

Since:

  • 0.1.0

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.inheritable=(identifier) ⇒ Boolean

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.

Parameters:

  • identifier (Boolean)

Returns:

  • (Boolean)

Since:

  • 0.19.0



12
13
14
# File 'lib/smart_core/container/definition_dsl/commands/base.rb', line 12

def inheritable=(identifier)
  @inheritable = identifier
end

.inheritable?Boolean

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.

Returns:

  • (Boolean)

Since:

  • 0.19.0



20
21
22
# File 'lib/smart_core/container/definition_dsl/commands/base.rb', line 20

def inheritable?
  @inheritable
end

.inherited(child_klass) ⇒ Boolean

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.

Returns:

  • (Boolean)

Since:

  • 0.19.0



28
29
30
31
# File 'lib/smart_core/container/definition_dsl/commands/base.rb', line 28

def inherited(child_klass)
  child_klass.instance_variable_set(:@inheritable, true)
  super
end

Instance Method Details

#call(registry) ⇒ void

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.

This method returns an undefined value.

Parameters:

Since:

  • 0.1.0



39
# File 'lib/smart_core/container/definition_dsl/commands/base.rb', line 39

def call(registry); end

#inheritable?Boolean

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.

Returns:

  • (Boolean)

Since:

  • 0.19.0



45
46
47
# File 'lib/smart_core/container/definition_dsl/commands/base.rb', line 45

def inheritable?
  self.class.inheritable?
end