module Calabash::Cucumber::Operations

A module for wrapping the public APIs of this gem.

Public Class Methods

extended(base) click to toggle source
# File lib/calabash-cucumber/operations.rb, line 28
def self.extended(base)
  if (class << base; included_modules.map(&:to_s).include?('Cucumber::RbSupport::RbWorld'); end)
    unless instance_methods.include?(:embed)
      original_embed = base.method(:embed)
      define_method(:embed) do |*args|
        original_embed.call(*args)
      end
    end
  end
end