Class: Onsen::Command

Inherits:
Thor
  • Object
show all
Defined in:
lib/onsen/command.rb

Instance Method Summary collapse

Instance Method Details

#twitter(times) ⇒ Object



9
10
11
12
13
14
# File 'lib/onsen/command.rb', line 9

def twitter(times)
  output = []
  output << "#{times} ツイートするよ?"
  output << 'メッセージ追加です!!' if options[:message]
  puts options[:test] ? (output << 'test実行です。') : output
end