Sha256: cf235cb0c055886e0cbd4a2bf91689b090ca825d938ecadd2231eea26e5243c3
Contents?: true
Size: 1.37 KB
Versions: 2
Compression:
Stored size: 1.37 KB
Contents
module Rubanok # Transformation parameters type params = Hash[Symbol | String, untyped] # Untyped Hash type hash = Hash[untyped, untyped] type field = Symbol # Transformation target (we assume that input and output types are the same) type input = Object? interface _RulesAdding def add_rule: (Rule rule) -> void end interface _Processor def raw: () -> input end class Processor include DSL::Matching extend DSL::Matching::ClassMethods include DSL::Mapping extend DSL::Mapping::ClassMethods include DSL::Process extend DSL::Process::ClassMethods extend _RulesAdding UNDEFINED: Object self.@rules: Array[Rule] self.@fields_set: Set[field] def self.superclass: () -> singleton(Processor) def self.call: (input, params) -> input | (params) -> input def self.rules: () -> Array[Rule] def self.fields_set: () -> Set[field] def self.project: (params) -> params def self.prepare: () { () -> input } -> void def initialize: (input) -> void def call: (params) -> input attr_accessor input: input private attr_accessor prepared: bool alias raw input alias prepared? prepared def apply_rule!: (Rule rule, params) -> void def prepare: () -> input def prepare!: () -> void def rules: () -> Array[Rule] end Plane: singleton(Processor) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubanok-0.5.1 | sig/rubanok/processor.rbs |
rubanok-0.5.0 | sig/rubanok/processor.rbs |