Sha256: f5cc41997d0a0926dfdd32ad131b587ef4c9588f2413668c836439d0d75ad326
Contents?: true
Size: 196 Bytes
Versions: 1
Compression:
Stored size: 196 Bytes
Contents
require 'caller_class/version' module CallerClass PATTERN = /\<class\:(\w+)\>/ def caller_class klass = caller.detect { |c| c =~ PATTERN } klass.match(PATTERN)[1] if klass end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caller_class-0.0.1 | lib/caller_class.rb |