module Calabash::Cucumber::Abstract

@!visibility private

Public Instance Methods

abstract_method!() click to toggle source

@!visibility private

# File lib/calabash-cucumber/abstract.rb, line 11
def abstract_method!
  if Kernel.method_defined?(:caller_locations)
    method_name = caller_locations.first.label
  else
    method_name = caller.first[/\`(.*)\'/, 1]
  end

  raise AbstractMethodError.new("Abstract method '#{method_name}'")
end