Sha256: a9719de0841e7b306baa8fdb5c56d58a479de1e1e5afd4584ea1652e93688a7f

Contents?: true

Size: 381 Bytes

Versions: 23

Compression:

Stored size: 381 Bytes

Contents

require "active_support/duration"


module Hiccup
  module CoreExt
    module DurationExtensions
      
      def from(*args)
        since(*args)
      end
      
      def after(*args)
        since(*args)
      end
      
      def before(*args)
        ago(*args)
      end
      
    end
  end
end


ActiveSupport::Duration.send(:include, Hiccup::CoreExt::DurationExtensions)

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
hiccup-0.5.14 lib/hiccup/core_ext/duration.rb
hiccup-0.5.13 lib/hiccup/core_ext/duration.rb
hiccup-0.5.12 lib/hiccup/core_ext/duration.rb
hiccup-0.5.11 lib/hiccup/core_ext/duration.rb
hiccup-0.5.10 lib/hiccup/core_ext/duration.rb
hiccup-0.5.9 lib/hiccup/core_ext/duration.rb
hiccup-0.5.8 lib/hiccup/core_ext/duration.rb
hiccup-0.5.7 lib/hiccup/core_ext/duration.rb
hiccup-0.5.6 lib/hiccup/core_ext/duration.rb
hiccup-0.5.5 lib/hiccup/core_ext/duration.rb
hiccup-0.5.4 lib/hiccup/core_ext/duration.rb
hiccup-0.5.3 lib/hiccup/core_ext/duration.rb
hiccup-0.5.2 lib/hiccup/core_ext/duration.rb
hiccup-0.5.1 lib/hiccup/core_ext/duration.rb
hiccup-0.5.0 lib/hiccup/core_ext/duration.rb
hiccup-0.4.5 lib/hiccup/core_ext/duration.rb
hiccup-0.4.4 lib/hiccup/core_ext/duration.rb
hiccup-0.4.3 lib/hiccup/core_ext/duration.rb
hiccup-0.4.2 lib/hiccup/core_ext/duration.rb
hiccup-0.4.1 lib/hiccup/core_ext/duration.rb