method

attribute

rails latest stable - Class: ActiveSupport::CurrentAttributes
attribute(*names)
public

Declares one or more attributes that will be given both class and instance accessor methods.