module Runaround::InstanceMethods

Public Class Methods

extended(into) click to toggle source
# File lib/runaround/instance_methods.rb, line 9
def self.extended(into)
  into.extend Runaround
  into.include Runaround
  into.runaround.after(:new) do |mc|
    mc.return_value.runaround.import(into.runaround_instance_methods)
  end
end
included(into) click to toggle source
# File lib/runaround/instance_methods.rb, line 4
def self.included(into)
  raise RuntimeError,
    "Runaround::InstanceMethods expects to be extended, not included"
end

Public Instance Methods

irunaround() { |x| ... } click to toggle source
# File lib/runaround/instance_methods.rb, line 22
def irunaround
  runaround_instance_methods.tap do |x|
    yield(x) if block_given?
  end
end
runaround_instance_methods() click to toggle source
# File lib/runaround/instance_methods.rb, line 17
def runaround_instance_methods
  @runaround_instance_methods ||= Manager.new(
    self, apply: false, for_instances: true)
end