class

Krikri::HostVarsVarsDict::StrictMissingAttribute

Inherits Crinja::Undefined < Reference < Object

The strict-mode miss value (see crinja_attribute): an Undefined that raises the real-Ansible HostVarsVars message only when forced. The message lives in its own ivar because the evaluator overwrites Undefined#name with the full expression path ("hostvars[node1]['x']") on the way out of member/index resolution - raising off name would lose the wrapper detail real Ansible surfaces verbatim.

Constructors

new(key : String)
Source

Instance methods

<=>(other)
Source
==(other)

Returns false (other can only be a Value here).

Source
to_s(io : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source