class YARD::CodeObjects::ConstantObject

A ConstantObject represents a Ruby constant (not a module or class). To access the constant's (source code) value, use {#value}.

Attributes

value[R]

The source code representing the constant's value @return [String] the value the constant is set to

Public Instance Methods

value=(value) click to toggle source
# File lib/yard/code_objects/constant_object.rb, line 9
def value=(value)
  @value = format_source(value)
end