Class: Unific::Wildcard
Overview
The unique Unific wildcard variable
Instance Attribute Summary
Attributes inherited from Var
Instance Method Summary collapse
-
#==(x) ⇒ Object
The wildcard variable matches any value.
-
#initialize ⇒ Wildcard
constructor
The wildcard variable is named “_”.
-
#to_s ⇒ Object
The wildcard variable is presented as “_”.
Constructor Details
#initialize ⇒ Wildcard
The wildcard variable is named “_”
225 226 227 |
# File 'lib/unific.rb', line 225 def initialize #:nodoc: super "_" end |
Instance Method Details
#==(x) ⇒ Object
The wildcard variable matches any value
235 236 237 |
# File 'lib/unific.rb', line 235 def == x true end |
#to_s ⇒ Object
The wildcard variable is presented as “_”
230 231 232 |
# File 'lib/unific.rb', line 230 def to_s "_" end |