Class: WhatsOn::Football
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args = ARGV) ⇒ Football
constructor
A new instance of Football.
Methods inherited from Tool
Constructor Details
#initialize(args = ARGV) ⇒ Football
Returns a new instance of Football.
9 10 11 12 13 14 15 16 17 |
# File 'lib/whatson/football.rb', line 9 def initialize( args=ARGV ) args = ['https://github.com/footballbook/calendar/raw/master/README.md'] if args.empty? super( args, title: 'Upcoming Football Tournaments', more_link: 'github.com/footballbook/calendar', show_year: true ## e.g. World Cup 2020 etc. ) end |
Class Method Details
.main ⇒ Object
6 |
# File 'lib/whatson/football.rb', line 6 def self.main() new( ARGV ).list; end |