Class: Ansible::Ruby::DslBuilders::ModuleCall

Inherits:
Base
  • Object
show all
Defined in:
lib/ansible/ruby/dsl_builders/module_call.rb

Constant Summary collapse

MODULES_MOD =
Ansible::Ruby::Modules

Instance Method Summary collapse

Methods inherited from Base

#_result, #initialize, #jinja, #method_missing

Constructor Details

This class inherits a constructor from Ansible::Ruby::DslBuilders::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Ansible::Ruby::DslBuilders::Base

Instance Method Details

#respond_to_missing?(method_name, _) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
16
# File 'lib/ansible/ruby/dsl_builders/module_call.rb', line 13

def respond_to_missing?(method_name, _)
  klass_name = _klass_name method_name
  MODULES_MOD.const_defined?(klass_name)
end