Sha256: 08a667a98c880c13179e492207c1aa99c2c66240387d3e5892a77bec4321e2af
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
module YARD module Rails class AttrAccessibleHandler < YARD::Handlers::Ruby::AttributeHandler handles method_call(:attr_accessible) handles method_call(:attr_protected) namespace_only 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yard-rails-0.3.0 | lib/yard-rails/attr_accessible_handler.rb |