class Pakyow::Framework

Base framework class.

Attributes

object[R]

Public Class Methods

Framework(name) click to toggle source

rubocop:disable Naming/MethodName

# File lib/pakyow/framework.rb, line 11
def Framework(name)
  Class.new(self) do
    @framework_name = name
  end
end
inherited(framework_class) click to toggle source

rubocop:enabled Naming/MethodName

Calls superclass method
# File lib/pakyow/framework.rb, line 18
def inherited(framework_class)
  super

  return unless instance_variable_defined?(:@framework_name)
  Pakyow.register_framework(@framework_name, framework_class)
end
new(object) click to toggle source
# File lib/pakyow/framework.rb, line 35
def initialize(object)
  @object = object
end