module Surrounded::Context::NameCollisionDetector
Attributes
handler[R]
Public Class Methods
extended(base)
click to toggle source
# File lib/surrounded/context/name_collision_detector.rb, line 8 def self.extended(base) base.send :include, NameCollisionHandler Surrounded::Exceptions.define(base, exceptions: :NameCollisionError) end
Public Instance Methods
on_name_collision(method_name)
click to toggle source
# File lib/surrounded/context/name_collision_detector.rb, line 13 def on_name_collision(method_name) @handler = method_name end