struct

Crig::Model::ModelList

Inherits Enumerable < JSON::Serializable < Struct < Value < Object

Constructors

new(data : Array(Model))
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

data
Source
each

Must yield this collection's elements to the block.

Source
empty?

Returns true if self does not contain any element.

([] of Int32).empty? # => true
([1]).empty?         # => false
[nil, false].empty?  # => false
  • #present? returns the inverse.
Source
into_iter
Source
is_empty

ameba:disable Naming/PredicateName

Source
iter
Source