class YARD::Rails::ClassAttributeHandler
Public Instance Methods
process()
click to toggle source
Calls superclass method
# File lib/yard-rails/class_attribute_handler.rb, line 14 def process # HACK: Strip the [c,m] off of the front of the method, so that # AttributeHandler will be able to correctly detect the resulting # method as read/write. name = statement[0].source[1..-1] statement[0] = YARD::Parser::Ruby::AstNode.node_class_for(:ident).new(:ident, [name]) push_state(:scope => :class) { super } end