Class: Bake::Modernize::License::Authorship::Copyright
- Inherits:
-
Struct
- Object
- Struct
- Bake::Modernize::License::Authorship::Copyright
- Defined in:
- lib/bake/modernize/license.rb
Overview
Represents the copyright for an author.
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#dates ⇒ Object
Returns the value of attribute dates.
Instance Method Summary collapse
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author
186 187 188 |
# File 'lib/bake/modernize/license.rb', line 186 def @author end |
#dates ⇒ Object
Returns the value of attribute dates
186 187 188 |
# File 'lib/bake/modernize/license.rb', line 186 def dates @dates end |
Instance Method Details
#<=>(other) ⇒ Object
187 188 189 |
# File 'lib/bake/modernize/license.rb', line 187 def <=> other self.to_a <=> other.to_a end |
#statement ⇒ Object
191 192 193 194 |
# File 'lib/bake/modernize/license.rb', line 191 def statement years = self.dates.map(&:year).uniq return "Copyright, #{years.join('-')}, by #{}." end |