class StrongConcerns::Role

Attributes

mod[R]

Public Class Methods

new(mod, options) click to toggle source
# File lib/strong_concerns/reflection.rb, line 5
def initialize(mod, options)
  @mod = mod
  @options = options
end

Public Instance Methods

instance(subject) click to toggle source
# File lib/strong_concerns/reflection.rb, line 14
def instance(subject)
  intermediate_class.new(subject, @options)
end
intermediate_class() click to toggle source
# File lib/strong_concerns/reflection.rb, line 10
def intermediate_class
  @intermediate_class ||= Intermediate.prepare(@mod)
end