Sha256: 13e988690423ffe660ff95a804eba39d024d952a3941f730dcc573d8a0239882

Contents?: true

Size: 119 Bytes

Versions: 1

Compression:

Stored size: 119 Bytes

Contents

module Id::Boolean
  extend self

  def parse(value)
    ['yes', 'true', '1'].include?(value.to_s.downcase)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
id-0.1 lib/id/boolean.rb