Object
# File lib/active_model/attribute_methods.rb, line 319
319: def initialize(options = {})
320: options.symbolize_keys!
321: @prefix, @suffix = options[:prefix] || '', options[:suffix] || ''
322: @regex = /^(#{Regexp.escape(@prefix)})(.+?)(#{Regexp.escape(@suffix)})$/
323: end
# File lib/active_model/attribute_methods.rb, line 325
325: def match(method_name)
326: if matchdata = @regex.match(method_name)
327: AttributeMethodMatch.new(method_missing_target, matchdata[2])
328: else
329: nil
330: end
331: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.