Module: NattyUI::ProgressAttributes

Included in:
Wrapper::Progress, Wrapper::Task
Defined in:
lib/natty-ui/wrapper/mixins.rb

Overview

Additional attributes for progression elements.

Progression elements have additional states (#completed?, #failed?) and can be closed with calling Features#completed or Features#failed.

Instance Attribute Summary collapse

Instance Attribute Details

#completed?Boolean (readonly)

Returns whether the task completed successfully.

Returns:

  • (Boolean)

    whether the task completed successfully



16
# File 'lib/natty-ui/wrapper/mixins.rb', line 16

def completed? = (@status == :completed)

#failed?Boolean (readonly)

Returns whether the task failed.

Returns:

  • (Boolean)

    whether the task failed



20
# File 'lib/natty-ui/wrapper/mixins.rb', line 20

def failed? = (@status == :failed)