class Prependers::Annotate::Namespace
Attributes
namespace[R]
Public Class Methods
[](namespace)
click to toggle source
# File lib/prependers/annotate/namespace.rb, line 8 def self.[](namespace) new(namespace) end
new(namespace)
click to toggle source
# File lib/prependers/annotate/namespace.rb, line 12 def initialize(namespace) @namespace = namespace end
Public Instance Methods
included(base)
click to toggle source
# File lib/prependers/annotate/namespace.rb, line 16 def included(base) base.singleton_class.class_eval <<~RUBY, __FILE__, __LINE__ + 1 def __prependers_namespace__ #{@namespace} end RUBY end