Class: ChromeData::ModelYear
- Inherits:
-
Object
- Object
- ChromeData::ModelYear
- Defined in:
- lib/chrome_data/model_year.rb
Class Method Summary collapse
-
.all ⇒ Object
Chrome Data returns years in the opposite order, but that’s not typically how selects are built, so they’re reversed here, since that’s the only purpose that I can see for this method.
Class Method Details
.all ⇒ Object
Chrome Data returns years in the opposite order, but that’s not typically how selects are built, so they’re reversed here, since that’s the only purpose that I can see for this method.
11 12 13 |
# File 'lib/chrome_data/model_year.rb', line 11 def self.all (Time.now.year + 1).downto(1981).to_a end |