Module: Memetalk
- Defined in:
- lib/memetalk.rb,
lib/memetalk/version.rb
Constant Summary collapse
- VERSION =
"0.0.4"
Class Method Summary collapse
Class Method Details
.list ⇒ Object
10 11 12 |
# File 'lib/memetalk.rb', line 10 def list Meme::GENERATORS.keys end |
.publish(link) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/memetalk.rb', line 18 def publish link EM.run do Talker::Client.connect(:room => room, :token => token) do |client| client.on_connected do client. link client.close end client.on_close do EM.stop end client.on_error do |error| $stdout.print error end end end end |
.run(argv = ARGV) ⇒ Object
14 15 16 |
# File 'lib/memetalk.rb', line 14 def run argv = ARGV publish Meme.run(argv) + '.jpg' end |