Class: StatusEnumerator::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/status_enumerator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#currentObject (readonly)

Returns the value of attribute current.



18
19
20
# File 'lib/status_enumerator.rb', line 18

def current
  @current
end

#nextObject (readonly)

Returns the value of attribute next.



18
19
20
# File 'lib/status_enumerator.rb', line 18

def next
  @next
end

#prevObject (readonly)

Returns the value of attribute prev.



18
19
20
# File 'lib/status_enumerator.rb', line 18

def prev
  @prev
end

Instance Method Details

#first?Boolean

Returns:

  • (Boolean)


19
# File 'lib/status_enumerator.rb', line 19

def first?; !!@first_p end

#last?Boolean

Returns:

  • (Boolean)


20
# File 'lib/status_enumerator.rb', line 20

def last?; !!@last_p end