Class: GoodData::LCM2::Type::ArrayType
- Defined in:
- lib/gooddata/lcm/types/special/array.rb
Constant Summary collapse
- CATEGORY =
:special
Instance Method Summary collapse
- #check(values) ⇒ Object
-
#initialize(type) ⇒ ArrayType
constructor
A new instance of ArrayType.
- #to_s ⇒ Object
Constructor Details
#initialize(type) ⇒ ArrayType
Returns a new instance of ArrayType.
15 16 17 |
# File 'lib/gooddata/lcm/types/special/array.rb', line 15 def initialize(type) @type = type end |
Instance Method Details
#check(values) ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/gooddata/lcm/types/special/array.rb', line 19 def check(values) return false unless values.is_a?(Array) values.each do |value| return false unless @type.check(value) end true end |
#to_s ⇒ Object
29 30 31 |
# File 'lib/gooddata/lcm/types/special/array.rb', line 29 def to_s "#{self.class.short_name}<#{@type}>" end |