Method: InterMine::Lists::List#first
- Defined in:
- lib/intermine/lists.rb
#first ⇒ Object
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
117 118 119 120 121 122 123 |
# File 'lib/intermine/lists.rb', line 117 def first if @size > 0 return self[0] else return nil end end |