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.4.0 lib/hiccup/core_ext/duration.rb
hiccup-0.3.0 lib/hiccup/core_ext/duration.rb
hiccup-0.2.1 lib/hiccup/core_ext/duration.rb