Class: Wood::Types::AnyType

Inherits:
BuiltinType show all
Defined in:
lib/wood/types.rb

Instance Attribute Summary

Attributes inherited from BuiltinType

#aliases, #name, #zero_value

Instance Method Summary collapse

Methods inherited from BuiltinType

#builtin?, #node_name, #numeric?, #sexp, #type

Methods included from TypeMatching

included

Constructor Details

#initialize(name, *aliases) ⇒ AnyType

Returns a new instance of AnyType.



279
280
281
# File 'lib/wood/types.rb', line 279

def initialize(name, *aliases)
  super(name, false, *aliases)
end

Instance Method Details

#==(other) ⇒ Object



283
284
285
# File 'lib/wood/types.rb', line 283

def == other
  true
end

#===(other) ⇒ Object



287
288
289
# File 'lib/wood/types.rb', line 287

def === other
  true
end