lib/yard/code_objects/constant_object.rb in yard-0.5.5 vs lib/yard/code_objects/constant_object.rb in yard-0.5.6

- old
+ new

@@ -2,10 +2,10 @@ # A +ConstantObject+ represents a Ruby constant (not a module or class). # To access the constant's (source code) value, use {#value}. class ConstantObject < Base # The source code representing the constant's value # @return [String] the value the constant is set to - attr_accessor :value + attr_reader :value def value=(value) @value = format_source(value) end end \ No newline at end of file