Sha256: dd201f930c9c177faa149765edd78500f5245cb93b6ec77c2bf3ae2f1f66d8bc

Contents?: true

Size: 273 Bytes

Versions: 12

Compression:

Stored size: 273 Bytes

Contents

class Ppl::Format::Custom::PhoneNumber < Ppl::Format::Custom

  format :n do |phone_number|
    phone_number.number
  end

  format :t do |phone_number|
    phone_number.type
  end

  format :f do |phone_number|
    if phone_number.preferred
      "*"
    end
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ppl-3.0.1 lib/ppl/format/custom/phone_number.rb
ppl-3.0.0 lib/ppl/format/custom/phone_number.rb
ppl-2.4.1 lib/ppl/format/custom/phone_number.rb
ppl-2.4.0 lib/ppl/format/custom/phone_number.rb
ppl-2.3.3 lib/ppl/format/custom/phone_number.rb
ppl-2.3.2 lib/ppl/format/custom/phone_number.rb
ppl-2.3.1 lib/ppl/format/custom/phone_number.rb
ppl-2.3.0 lib/ppl/format/custom/phone_number.rb
ppl-2.2.0 lib/ppl/format/custom/phone_number.rb
ppl-2.1.0 lib/ppl/format/custom/phone_number.rb
ppl-2.0.0 lib/ppl/format/custom/phone_number.rb
ppl-1.25.0 lib/ppl/format/custom/phone_number.rb