Sha256: b55702ed55d68e5405e9d99c7d0a0d369c5776c60177d536b72b5db0685ebdef
Contents?: true
Size: 475 Bytes
Versions: 3
Compression:
Stored size: 475 Bytes
Contents
class YARD::Handlers::Ruby::PlaceholderMatchHandler < YARD::Handlers::Ruby::Base handles method_call(:match) process do if owner.is_a?(YARD::CodeObjects::Placeholder) regex = "(?:#{statement.parameters[0].source.gsub(/^(["\/]|%r[{])|([}]|["\/])$/,'')})" if owner.value owner.value = "#{owner.value}|#{regex}" else owner.value = regex end end rescue StandardError => e log.warn(e.backtrace) log.warn(e) end end
Version data entries
3 entries across 3 versions & 1 rubygems