lib/yard/handlers/ruby/class_variable_handler.rb in yard-0.2.3.5 vs lib/yard/handlers/ruby/class_variable_handler.rb in yard-0.4.0
- old
+ new
@@ -3,9 +3,13 @@
handles :assign
def process
if statement[0].type == :var_field && statement[0][0].type == :cvar
name = statement[0][0][0]
- register ClassVariableObject.new(namespace, name) {|o| o.source = statement }
+ value = statement[1].source
+ register ClassVariableObject.new(namespace, name) do |o|
+ o.source = statement
+ o.value = value
+ end
end
end
end
\ No newline at end of file