Method: InterMine::Lists::List#first

Defined in:
lib/intermine/lists.rb

#firstObject

Returns the first element in the list. The order elements are returned in depends on the fields that its class has. It is not related to the order of the identifiers given at creation.

puts list.first.symbol


119
120
121
122
123
124
125
# File 'lib/intermine/lists.rb', line 119

def first
    if @size > 0
        return self[0]
    else
        return nil
    end
end