3 repository-uri
Hidden, per-instance classes used to store unique methods for specific objects.
Distinct from Class Method Definitions: Focuses on the runtime injection of singleton classes, distinct from standard class method definitions.
Explore 3 awesome GitHub repositories matching programming languages & runtimes · Singleton Classes. Refine with filters or upvote what's useful.
Ruby is a general-purpose, dynamic programming language built on an object-oriented runtime environment. It treats every piece of data as an object, ensuring a consistent interface for manipulation across the entire system. The language is designed to support programmer productivity through a focus on natural syntax and flexible metaprogramming capabilities. The runtime distinguishes itself through a pure object model that allows for dynamic class modification and runtime method definition. It supports functional programming patterns by encapsulating code blocks as objects that capture their
Creates hidden, per-instance classes to store unique methods that only apply to a single specific object.
The WordPress Plugin Boilerplate is a standardized, object-oriented foundation for building WordPress plugins. It provides a predictable directory structure that separates admin, public, and shared logic, along with a singleton main plugin class that serves as a single entry point for initialization. The boilerplate includes a centralized class-loader hook registry for managing WordPress actions and filters, and prepares user-facing strings for translation through a variable text domain and generated .pot files. This toolkit streamlines plugin development by organizing repository assets like
Implements a singleton main plugin class as the single entry point for initialization.
This project is a Ruby unit testing tool designed for dependency isolation and behavioral contract verification. It functions as a comprehensive mocking framework that allows developers to replace real objects with controlled placeholders, ensuring that code interacts with its dependencies as expected during automated test execution. The framework distinguishes itself through its ability to perform partial double verification, which checks that stubbed methods exist on the underlying object to prevent tests from passing against incorrect interfaces. It also provides sophisticated constant man
Modifies the singleton class of specific object instances to override behavior without affecting the global class definition.