Sha256: fc85b84ad03bfe85f0497cfcab7c17497810f3d6f0c634f3815351ed11a4c5c1

Contents?: true

Size: 429 Bytes

Versions: 11

Compression:

Stored size: 429 Bytes

Contents

require 'asir'
# Added .asir support.
module Email
  include ASIR::Client # Email.asir
  def send_email template_name, options
    $stderr.puts "*** #{$$}: Email.send_mail #{template_name.inspect} #{options.inspect}"
    :ok
  end
  def do_raise msg
    raise msg
  end
  extend self
end

class MyClass
  include ASIR::Client
  def initialize x
    @x = x
  end
  def method_missing sel, *args
    @x.send(sel, *args)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
asir_beanstalk-1.2.8 example/sample_service.rb
asir_beanstalk-1.2.7 example/sample_service.rb
asir_beanstalk-1.2.6 example/sample_service.rb
asir_beanstalk-1.2.5 example/sample_service.rb
asir_beanstalk-1.2.3 example/sample_service.rb
asir_beanstalk-1.2.0 example/sample_service.rb
asir_beanstalk-1.1.5 example/sample_service.rb
asir_beanstalk-1.1.4 example/sample_service.rb
asir_beanstalk-1.1.3 example/sample_service.rb
asir_beanstalk-1.1.2 example/sample_service.rb
asir_beanstalk-1.1.1 example/sample_service.rb