Skip to content

Implement to_f #11

Description

@greggilbert

Nice to see another gem that's trying to break free from Rails dependencies. Thanks for the effort!

A number of other libraries run to_f on durations (e.g. Sidekiq). When I tried it with timerizer, it threw:

NoMethodError: undefined method `to_f' for #<Timerizer::Duration:0x00007f25c88d79e0 @seconds=60, @months=0>

It'd be a huge help in terms of compatibilty if .to_f worked for duration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions