Class: Ansible::ConstantResolver
- Inherits:
-
Object
- Object
- Ansible::ConstantResolver
- Defined in:
- lib/ansible/constant_resolver.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ ConstantResolver
constructor
A new instance of ConstantResolver.
- #lookup_constant ⇒ Object
Constructor Details
#initialize(name) ⇒ ConstantResolver
Returns a new instance of ConstantResolver.
3 4 5 |
# File 'lib/ansible/constant_resolver.rb', line 3 def initialize(name) @name = name end |
Instance Method Details
#lookup_constant ⇒ Object
7 8 9 |
# File 'lib/ansible/constant_resolver.rb', line 7 def lookup_constant name.constantize end |