Sha256: 98287f285d2d5873fd9c8372ca3256f33b72638af74feaf9b8ab5a8ed6020fa7

Contents?: true

Size: 744 Bytes

Versions: 3

Compression:

Stored size: 744 Bytes

Contents

module Rubanok
  class Rule
    UNDEFINED: Object

    @method_name: String

    attr_reader fields: Array[field]
    attr_reader activate_on: Array[field]
    attr_reader activate_always: bool
    attr_reader ignore_empty_values: bool
    attr_reader filter_with: Method?

    %a{rbs:test:skip} def initialize: (
      Array[field] fields,
      ?activate_on: field | Array[field],
      ?activate_always: bool,
      ?ignore_empty_values: bool,
      ?filter_with: Method?
    ) -> void
    def project: (params) -> params
    def applicable?: (params) -> bool
    def to_method_name: () -> String

    private
    def build_method_name: () -> String
    def fetch_value: (params, field) -> Object
    def empty?: (untyped) -> bool
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubanok-0.5.1 sig/rubanok/rule.rbs
rubanok-0.5.0 sig/rubanok/rule.rbs
rubanok-0.4.0 sig/rubanok/rule.rbs