Class: NattyUI::Wrapper::Progress

Inherits:
Element
  • Object
show all
Includes:
ProgressAttributes, ValueAttributes
Defined in:
lib/natty-ui/wrapper/progress.rb

Overview

An Element displaying a progression.

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#completed?Boolean (readonly) Originally defined in module ProgressAttributes

Returns whether the task completed successfully.

Returns:

  • (Boolean)

    whether the task completed successfully

#failed?Boolean (readonly) Originally defined in module ProgressAttributes

Returns whether the task failed.

Returns:

  • (Boolean)

    whether the task failed

#infoString? Originally defined in module ValueAttributes

Returns current information.

Returns:

  • (String, nil)

    current information

#max_valueFloat? (readonly) Originally defined in module ValueAttributes

Maximum value.

Returns:

  • (Float)

    maximum value

  • (nil)

    when no max_value was configured

#valueFloat Originally defined in module ValueAttributes

Returns current value.

Returns:

  • (Float)

    current value

Instance Method Details

#step(increment = 1) ⇒ Wrapper::Element Originally defined in module ValueAttributes

Increase the value by given amount.

Parameters:

  • increment (#to_f) (defaults to: 1)

    value increment

Returns: