Class: YARD::Rails::ClassAttributeHandler
- Inherits:
-
Handlers::Ruby::AttributeHandler
- Object
- Handlers::Ruby::AttributeHandler
- YARD::Rails::ClassAttributeHandler
- Defined in:
- lib/yard-rails/class_attribute_handler.rb
Instance Method Summary collapse
Instance Method Details
#process ⇒ Object
14 15 16 17 18 19 20 21 22 |
# 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 |