Class: Ring::SQA::Paste

Inherits:
Object
  • Object
show all
Defined in:
lib/ring/sqa/paste.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.add(string) ⇒ Object



7
8
9
10
11
# File 'lib/ring/sqa/paste.rb', line 7

def self.add string
  Paste.new.add string
rescue => error
  "paste raised '#{error.class}' with message '#{error.message}'"
end

Instance Method Details

#add(string, url = CFG.paste.url) ⇒ Object



13
14
15
# File 'lib/ring/sqa/paste.rb', line 13

def add string, url=CFG.paste.url
  paste string, url
end