Class: YARD::CodeObjects::ConstantObject
- Inherits:
-
Base
- Object
- Base
- YARD::CodeObjects::ConstantObject
- Defined in:
- lib/yard/code_objects/constant_object.rb
Overview
A ConstantObject represents a Ruby constant (not a module or class). To access the constant’s (source code) value, use #value.
Instance Attribute Summary
- - (String) value The source code representing the constant’s value.
Methods inherited from Base
#==, ===, #[], #[]=, #add_file, #dynamic?, #file, #format, #format_source, #has_tag?, #initialize, #inspect, #line, #method_missing, #name, new, #parent, #parent=, #path, #relative_path, #root?, #sep, #tag, #tags, #to_s, #type
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
- (String) value
The source code representing the constant’s value
7 8 9 |
# File 'lib/yard/code_objects/constant_object.rb', line 7 def value @value end |