Sha256: 911ab29a2e3e34a2e065e1eaf21b78908efb752bef006e6c3f7fe3da47970e28

Contents?: true

Size: 375 Bytes

Versions: 15

Compression:

Stored size: 375 Bytes

Contents

module Hiccup
  module Convenience
    
    
    def never?
      kind == :never
    end
    
    def weekly?
      kind == :weekly
    end
    
    def monthly?
      kind == :monthly
    end
    
    def annually?
      kind == :annually
    end
    
    
    def ends?
      return %w{true 1 t}.member?(ends) if ends.is_a?(String)
      !!ends
    end
    
    
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hiccup-0.5.14 lib/hiccup/convenience.rb
hiccup-0.5.13 lib/hiccup/convenience.rb
hiccup-0.5.12 lib/hiccup/convenience.rb
hiccup-0.5.11 lib/hiccup/convenience.rb
hiccup-0.5.10 lib/hiccup/convenience.rb
hiccup-0.5.9 lib/hiccup/convenience.rb
hiccup-0.5.8 lib/hiccup/convenience.rb
hiccup-0.5.7 lib/hiccup/convenience.rb
hiccup-0.5.6 lib/hiccup/convenience.rb
hiccup-0.5.5 lib/hiccup/convenience.rb
hiccup-0.5.4 lib/hiccup/convenience.rb
hiccup-0.5.3 lib/hiccup/convenience.rb
hiccup-0.5.2 lib/hiccup/convenience.rb
hiccup-0.5.1 lib/hiccup/convenience.rb
hiccup-0.5.0 lib/hiccup/convenience.rb