Package-level declarations

Types

Link copied to clipboard
class ChallengeGroup<T : Challenge>(val languageGroup: LanguageGroup<T>, groupNameSuffix: GroupName)

A named group of programming challenges within a single language.

Link copied to clipboard

Thread-safe caches for DSL code, source files, and directory listings to avoid redundant remote fetches.

Link copied to clipboard
object ContentDsl

Holder for the DSL logger.

Link copied to clipboard
class GitHubContent(ownerType: OwnerType, ownerName: String, repoName: String, branchName: String = "master", srcPath: String = "src/main/kotlin", fileName: String = "Content.kt") : GitHubFile

A reference to a Content DSL file hosted on GitHub.

Link copied to clipboard
class LanguageGroup<T : Challenge>(content: ReadingBatContent, languageType: LanguageType)

A container for all challenge groups within a single programming language.

Link copied to clipboard

Enumerates the supported programming languages for challenges.

Link copied to clipboard

Top-level container for all ReadingBat content, serving as the root of the DSL hierarchy.

Link copied to clipboard

DSL marker annotation that restricts implicit receiver scope within ReadingBat DSL blocks.

Link copied to clipboard

Defines the expected return type of a challenge function.

Functions

Link copied to clipboard
fun ContentSource.eval(enclosingContent: ReadingBatContent, variableName: String = "content"): ReadingBatContent

Loads and evaluates a remote ContentSource (e.g., a GitHubContent file) as a Kotlin script, returning the resulting ReadingBatContent. The DSL file must define a variable with the given variableName (defaults to "content") that holds the ReadingBatContent result.

Link copied to clipboard

Returns true if the server is running in production mode. Accessible from Content.kt DSL files.

Link copied to clipboard

Returns true if the server is running in test mode. Accessible from Content.kt DSL files.

Link copied to clipboard

Entry point for the ReadingBat content DSL. Creates and configures a ReadingBatContent instance.