module Sharrando

Constants

VERSION

Public Class Methods

configure() { |self| ... } click to toggle source
# File lib/sharrando/sharrando.rb, line 18
def configure
  if block_given?
    yield self
  else
    raise ArgumentError, 'A block is required as first parameter.'
  end
end
on(social, *things) click to toggle source
# File lib/sharrando/sharrando.rb, line 13
def on(social, *things)
  things.each { |k, v| things[k] = CGI::escape(v) if v.is_a?(String) }
  Social.new.send(social, *things)
end

Public Instance Methods

sharrando_on(social, *things) click to toggle source
# File lib/sharrando/sharrando.rb, line 33
def sharrando_on(social, *things)
  Sharrando.on(social, *things)
end