Sha256: f03943194e1b807cfe55c3f910e4b4aa94c01be8a4de83a6a50d578d0abafd21

Contents?: true

Size: 443 Bytes

Versions: 7

Compression:

Stored size: 443 Bytes

Contents

module YARD::CodeObjects
  register_separator NSEP, :constant

  # 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_reader :value

    def value=(value)
      @value = format_source(value)
    end
  end
end

Version data entries

7 entries across 6 versions & 2 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/lib/yard/code_objects/constant_object.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/lib/yard/code_objects/constant_object.rb
yard-0.9.5 lib/yard/code_objects/constant_object.rb
yard-0.9.4 lib/yard/code_objects/constant_object.rb
yard-0.9.3 lib/yard/code_objects/constant_object.rb
yard-0.9.2 lib/yard/code_objects/constant_object.rb
yard-0.9.1 lib/yard/code_objects/constant_object.rb