Class: Typespec::Array
- Inherits:
-
Object
- Object
- Typespec::Array
- Defined in:
- lib/typespec.rb
Overview
…
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*elements) ⇒ Array
constructor
A new instance of Array.
- #valid?(value) ⇒ Boolean
Constructor Details
Class Method Details
Instance Method Details
#valid?(value) ⇒ Boolean
87 88 89 90 91 92 93 |
# File 'lib/typespec.rb', line 87 def valid?(value) if value.is_a? ::Array value.all?{|element| @element.valid?(element)} else false end end |