Class: YARD::Rails::Legacy::AttrAccessibleHandler

Inherits:
Handlers::Ruby::Legacy::AttributeHandler
  • Object
show all
Defined in:
lib/yard-rails/legacy/attr_accessible_handler.rb

Instance Method Summary collapse

Instance Method Details

#processObject



9
10
11
12
13
14
# File 'lib/yard-rails/legacy/attr_accessible_handler.rb', line 9

def process
  # HACK: Must set the name to attr_accessor to make the attribute
  # show up as read/write.
  statement.tokens.first.set_text('attr_accessor')
  super
end