Class: Jisx0402::DistrictArray
- Inherits:
-
Array
- Object
- Array
- Jisx0402::DistrictArray
- Defined in:
- lib/jisx0402/district_array.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.wrap(ary) ⇒ Object
2 3 4 5 6 |
# File 'lib/jisx0402/district_array.rb', line 2 def self.wrap(ary) this = new ary.flatten.map{|e| this << e } return this end |
Instance Method Details
#codes ⇒ Object
12 13 14 |
# File 'lib/jisx0402/district_array.rb', line 12 def codes self.map(&:code).flatten.uniq.compact end |
#zipcodes ⇒ Object
8 9 10 |
# File 'lib/jisx0402/district_array.rb', line 8 def zipcodes self.map(&:zipcodes).flatten.uniq.compact end |