Class: CatClaw::Catcher

Inherits:
Object
  • Object
show all
Defined in:
lib/cat_claw/catcher.rb

Instance Method Summary collapse

Constructor Details

#initialize(arguments) ⇒ Catcher

Returns a new instance of Catcher.



5
6
7
8
9
10
11
12
13
# File 'lib/cat_claw/catcher.rb', line 5

def initialize(arguments)
  @arguments = arguments
  @cats = [
    CatClaw::RubyChinaCat.new,
    CatClaw::V2EXCat.new,
    CatClaw::WeWorkRemotelyCat.new,
    CatClaw::StackOverFlowCat.new
  ]
end

Instance Method Details

#pawObject



15
16
17
18
19
20
# File 'lib/cat_claw/catcher.rb', line 15

def paw
  parse_options
  @cats.each do |cat|
    p cat.paw
  end
end

#runObject



22
23
24
# File 'lib/cat_claw/catcher.rb', line 22

def run
  paw
end