Class: StatusEnumerator::Status
- Inherits:
-
Object
- Object
- StatusEnumerator::Status
- Defined in:
- lib/status_enumerator.rb
Instance Attribute Summary collapse
-
#current ⇒ Object
readonly
Returns the value of attribute current.
-
#next ⇒ Object
readonly
Returns the value of attribute next.
-
#prev ⇒ Object
readonly
Returns the value of attribute prev.
Instance Method Summary collapse
Instance Attribute Details
#current ⇒ Object (readonly)
Returns the value of attribute current.
18 19 20 |
# File 'lib/status_enumerator.rb', line 18 def current @current end |
#next ⇒ Object (readonly)
Returns the value of attribute next.
18 19 20 |
# File 'lib/status_enumerator.rb', line 18 def next @next end |
#prev ⇒ Object (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
19 |
# File 'lib/status_enumerator.rb', line 19 def first?; !!@first_p end |
#last? ⇒ Boolean
20 |
# File 'lib/status_enumerator.rb', line 20 def last?; !!@last_p end |