Sha256: b3430268f70d3796b4e6ed021ef1a88d5ff6f51aa4b2775442e4fd4960dddd11

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

module Admin::SuppliersHelper
  def find_minutes outcome
    minutes = outcome.scan(/:\d+/)
    minutes.each do |s|
      s.delete!(":")
    end
    minutes
  end

  def find_periods outcome
    periods = outcome.scan(/(AM|PM)/)
  end

  def find_hours outcome
    hours = outcome.scan(/\d+:/)
    hours.each do | s|
      s.delete!(":")
    end
    hours
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_suppliers-0.0.1 app/helpers/admin/suppliers_helper.rb
spree_suppliers-0.60.3 app/helpers/admin/suppliers_helper.rb