Class: YARD::Rails::Legacy::ClassAttributeHandler
- Inherits:
-
Handlers::Ruby::Legacy::AttributeHandler
- Object
- Handlers::Ruby::Legacy::AttributeHandler
- YARD::Rails::Legacy::ClassAttributeHandler
- Defined in:
- lib/yard-rails/legacy/class_attribute_handler.rb
Instance Method Summary collapse
Instance Method Details
#process ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/yard-rails/legacy/class_attribute_handler.rb', line 9 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. new_text = statement.tokens.first.text.to_s[1..-1] statement.tokens.first.set_text(new_text) push_state(:scope => :class) { super } end |