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.20.0 | lib/calabash-cucumber/abstract.rb |