Sha256: 45375bffbf7296ba7e0ff0559d76554bfb6f35678fdbcda07aec32214da7cc1b

Contents?: true

Size: 335 Bytes

Versions: 5

Compression:

Stored size: 335 Bytes

Contents

class YARD::Handlers::Ruby::ClassVariableHandler < YARD::Handlers::Ruby::Base
  namespace_only
  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 }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yard-0.2.3.5 lib/yard/handlers/ruby/class_variable_handler.rb
yard-0.2.3.4 lib/yard/handlers/ruby/class_variable_handler.rb
yard-0.2.3.2 lib/yard/handlers/ruby/class_variable_handler.rb
yard-0.2.3.3 lib/yard/handlers/ruby/class_variable_handler.rb
yard-0.2.3 lib/yard/handlers/ruby/class_variable_handler.rb