class ActiveModel::AttributeMethods::ClassMethods::AttributeMethodMatcher
def initialize(prefix: "", suffix: "", parameters: nil)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (prefix: String, suffix: String, parameters: false) -> void
This signature was generated using 1 sample from 1 application.
def initialize(prefix: "", suffix: "", parameters: nil) @prefix = prefix @suffix = suffix @parameters = parameters.nil? ? FORWARD_PARAMETERS : parameters @regex = /\A(?:#{Regexp.escape(@prefix)})(.*)(?:#{Regexp.escape(@suffix)})\z/ @target = "#{@prefix}attribute#{@suffix}" @method_name = "#{prefix}%s#{suffix}" end