Sha256: 7cc53abc418379d985c4a3658bd054e708a6582e77bb1a73fd78462717005a8c

Contents?: true

Size: 509 Bytes

Versions: 21

Compression:

Stored size: 509 Bytes

Contents

module Calabash
  module Cucumber
    # @!visibility private
    module Abstract

      # @!visibility private
      class AbstractMethodError < StandardError; end

      # @!visibility private
      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
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
calabash-cucumber-0.23.7 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.23.6 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.23.5 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.23.4 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.23.3 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.23.2 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.23.1 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.23.0 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.22.2 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.21.10 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.21.8 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.21.7 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.21.6 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.21.5 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.21.4 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.21.2 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.21.1 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.20.5 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.20.4 lib/calabash-cucumber/abstract.rb
calabash-cucumber-0.20.3 lib/calabash-cucumber/abstract.rb