Method: Positionable::InstanceMethods#first?

Defined in:
lib/positionable.rb

#first?(list_name = :default) ⇒ Boolean

True if the record is the first in the list.

Returns:

  • (Boolean)


167
168
169
# File 'lib/positionable.rb', line 167

def first?(list_name = :default)
  in_list? && list_position == top_position_in_list(list_name)
end