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 Attribute Summary

Attributes inherited from Base

#result

Instance Method Summary collapse

Methods inherited from Base

#evaluate, #initialize, #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)


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

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