Class: YARD::Rails::AttrAccessibleHandler

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

Instance Method Summary collapse

Instance Method Details

#processObject



9
10
11
12
13
14
# File 'lib/yard-rails/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[0] = YARD::Parser::Ruby::AstNode.node_class_for(:ident).new(:ident, ["attr_accessor"])
  super
end