class SyntaxTree::Reflection::Type::ArrayType
Represents an array type that holds another type.
Attributes
Public Class Methods
Source
# File lib/syntax_tree/reflection.rb, line 17 def initialize(type) @type = type end
Public Instance Methods
Source
# File lib/syntax_tree/reflection.rb, line 21 def ===(value) value.is_a?(Array) && value.all? { type === _1 } end
Source
# File lib/syntax_tree/reflection.rb, line 25 def inspect "Array<#{type.inspect}>" end