Class: WhatsOn::BeerFest

Inherits:
Tool
  • Object
show all
Defined in:
lib/whatson/beerfest.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Tool

#list

Constructor Details

#initialize(args = ARGV) ⇒ BeerFest

Returns a new instance of BeerFest.



9
10
11
12
13
14
15
16
# File 'lib/whatson/beerfest.rb', line 9

def initialize( args=ARGV )
  args = ['https://github.com/beerbook/calendar/raw/master/README.md']  if args.empty?

  super( args,
         title:     'Upcoming Beerfests',
         more_link: 'github.com/beerbook/calendar'
       )
end

Class Method Details

.mainObject



6
# File 'lib/whatson/beerfest.rb', line 6

def self.main()   new( ARGV ).list;   end