Quartz::Any
Any is a convenient wrapper around all possible Quartz types (Any::Type).
It is used to denote all types that may be transmitted between two Ports
through couplings.
Any is used internally to store the outputs generated by atomic models
before presenting them to their receivers.
Constructors
Creates a Any value that wraps a new Hash
Instance methods
Assumes the underlying value is a Array and appends the given value at the
end of the array.
Raises if the underlying value is not an Array.
Assumes the underlying value is a Array and appends the given value at the
end of the array.
Raises if the underlying value is not an Array.
Assumes the underlying value is a Hash and returns the element with the
given key.
Raises if the underlying value is not a Hash.
Assumes the underlying value is a Hash or Array and returns the element
with the given index or key.
Raises if the underlying value is not a Hash or Array.
Assumes the underlying value is a Array and sets the given value at the
given index.
Raises if the underlying value is not an Array.
Assumes the underlying value is a Array and sets the given value at the
given index.
Raises if the underlying value is not an Array.
Assumes the underlying value is a Hash and sets the given value at the
given key.
Assumes the underlying value is a Hash and sets the given value at the
given key.
Assumes the underlying value is a Hash and sets the given value at the
given key.
Assumes the underlying value is an Array and returns the element at the
given index, or nil if out of bounds.
Raises if the underlying value is not an Array.
Assumes the underlying value is a Hash or Array and returns the element
with the given index or key.
Raises if the underlying value is not a Hash or Array.
Assumes the underlying value is a Hash and returns the element with the
given key, or nil if the key is not present.
Raises if the underlying value is not a Hash.
Checks that the underlying value is Array, and returns its value. Returns nil otherwise.
Checks that the underlying value is Bool, and returns its value. Returns nil otherwise.
Checks that the underlying value is Float, and returns its value as an Float64.
Raises otherwise.
Checks that the underlying value is Float, and returns its value as an Float32. Raises otherwise.
Checks that the underlying value is Float, and returns its value as an Float32. Returns nil otherwise.
Checks that the underlying value is Float, and returns its value as an Float64. Raises otherwise.
Checks that the underlying value is Float, and returns its value as an Float64. Returns nil otherwise.
Checks that the underlying value is Float, and returns its value as an Float64.
Returns nil otherwise.
Checks that the underlying value is Int, and returns its value as an Int32.
Raises otherwise.
Checks that the underlying value is Int, and returns its value as an Int128. Raises otherwise.
Checks that the underlying value is Int, and returns its value as an Int128. Returns nil otherwise.
Checks that the underlying value is Int, and returns its value as an Int16. Raises otherwise.
Checks that the underlying value is Int, and returns its value as an Int16. Returns nil otherwise.
Checks that the underlying value is Int, and returns its value as an Int32. Raises otherwise.
Checks that the underlying value is Int, and returns its value as an Int32. Returns nil otherwise.
Checks that the underlying value is Int, and returns its value as an Int64. Raises otherwise.
Checks that the underlying value is Int, and returns its value as an Int64. Returns nil otherwise.
Checks that the underlying value is Int, and returns its value as an Int8. Raises otherwise.
Checks that the underlying value is Int, and returns its value as an Int8. Returns nil otherwise.
Checks that the underlying value is Int, and returns its value as an Int32.
Returns nil otherwise.
Checks that the underlying value is String, and returns its value. Returns nil otherwise.
Checks that the underlying value is Int, and returns its value as an UInt64. Raises otherwise.
Checks that the underlying value is Int, and returns its value as an UInt64. Raises otherwise.
Checks that the underlying value is Int, and returns its value as an UInt16. Raises otherwise.
Checks that the underlying value is Int, and returns its value as an UInt16. Returns nil otherwise.
Checks that the underlying value is Int, and returns its value as an UInt32. Raises otherwise.
Checks that the underlying value is Int, and returns its value as an UInt32. Returns nil otherwise.
Checks that the underlying value is Int, and returns its value as an UInt64. Raises otherwise.
Checks that the underlying value is Int, and returns its value as an UInt64. Returns nil otherwise.
Checks that the underlying value is Int, and returns its value as an UInt8. Raises otherwise.
Checks that the underlying value is Int, and returns its value as an UInt8. Returns nil otherwise.
Assumes the underlying value is an Array or Hash and returns
its size.
Raises if the underlying value is not an Array or Hash.