class Scribble::Registry::ForClassContext

Public Class Methods

new(registry, receiver_class) click to toggle source
# File lib/scribble/registry.rb, line 21
def initialize registry, receiver_class
  @registry, @receiver_class = registry, receiver_class
end

Public Instance Methods

method(name, *signature, block: false, **options) click to toggle source
# File lib/scribble/registry.rb, line 25
def method name, *signature, block: false, **options
  (block ? Block : Method).implement @receiver_class, name, signature, @registry, **options
end
name(name) click to toggle source
# File lib/scribble/registry.rb, line 37
def name name
  @registry.class_name @receiver_class, name
end
to_boolean(&proc) click to toggle source
# File lib/scribble/registry.rb, line 29
def to_boolean &proc
  method :to_boolean, to: proc
end
to_string(&proc) click to toggle source
# File lib/scribble/registry.rb, line 33
def to_string &proc
  method :to_string, to: proc
end