Module: RailsCVE::Entry::Presentation
- Extended by:
- ActiveSupport::Concern
- Included in:
- RailsCVE::Entry
- Defined in:
- app/models/concerns/rails_cve/entry/presentation.rb
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
4 5 6 |
# File 'app/models/concerns/rails_cve/entry/presentation.rb', line 4 def to_s name end |
#year ⇒ Object
8 9 10 |
# File 'app/models/concerns/rails_cve/entry/presentation.rb', line 8 def year @year ||= name.gsub(/^CVE-(\d{4})/, '\1').to_i end |