Sha256: 7db614fdb28184d8c0838016662eff5dd36d21049ac8b1f745e20ef7f67e0056
Contents?: true
Size: 385 Bytes
Versions: 3
Compression:
Stored size: 385 Bytes
Contents
# frozen_string_literal: true module Factrey class DSL # An intermediate object for <code>on.name(...)</code> notation. See {DSL#on}. class On < BasicObject # @param dsl [DSL] def initialize(dsl) = @dsl = dsl # @!visibility private def respond_to_missing?(_name, _) = true def method_missing(name, ...) = @dsl.on(name, ...) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
factrey-0.3.0 | lib/factrey/dsl/on.rb |
factrey-0.2.0 | lib/factrey/dsl/on.rb |
factrey-0.1.0 | lib/factrey/dsl/on.rb |