module BBLib::Prototype::ClassMethods

Public Instance Methods

method_missing(method, *args, &block) click to toggle source
Calls superclass method
# File lib/bblib/core/mixins/prototype.rb, line 17
def method_missing(method, *args, &block)
  prototype.respond_to?(method) ? prototype.send(method, *args, &block) : super
end
prototype(opts = prototype_defaults) click to toggle source
# File lib/bblib/core/mixins/prototype.rb, line 9
def prototype(opts = prototype_defaults)
  @prototype ||= self.new(*prototype_defaults)
end
prototype_defaults() click to toggle source
# File lib/bblib/core/mixins/prototype.rb, line 13
def prototype_defaults
  []
end
respond_to_missing?(method, include_private = false) click to toggle source
Calls superclass method
# File lib/bblib/core/mixins/prototype.rb, line 21
def respond_to_missing?(method, include_private = false)
  prototype.respond_to?(method) || super
end