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