Class: YARD::CodeObjects::ClassVariableObject
- Defined in:
- lib/yard/code_objects/class_variable_object.rb
Overview
Represents a class variable inside a namespace. The path is expressed in the form “A::B::@@classvariable”
Instance Attribute Summary collapse
-
#value ⇒ String
The class variable’s value.
Attributes inherited from Base
#docstring, #dynamic, #files, #group, #namespace, #signature, #source, #source_type
Method Summary
Methods inherited from Base
===, #[], #[]=, #add_file, #dynamic?, #equal?, #file, #format, #format_source, #has_tag?, #hash, #initialize, #inspect, #line, #method_missing, #name, new, #path, #relative_path, #root?, #sep, #tag, #tags, #type, #visibility
Constructor Details
This class inherits a constructor from YARD::CodeObjects::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class YARD::CodeObjects::Base
Instance Attribute Details
#value ⇒ String
Returns the class variable’s value.
6 7 8 |
# File 'lib/yard/code_objects/class_variable_object.rb', line 6 def value @value end |