Class: Gem::Specification

Inherits:
Object
  • Object
show all
Defined in:
lib/yard/rubygems/specification.rb

Constant Summary collapse

@@default_value =
t.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#has_rdocObject

Returns the value of attribute has_rdoc.



26
27
28
# File 'lib/yard/rubygems/specification.rb', line 26

def has_rdoc
  @has_rdoc
end

Instance Method Details

#_dump_with_rdoc(limit) ⇒ Object Also known as: _dump



30
31
32
33
34
# File 'lib/yard/rubygems/specification.rb', line 30

def _dump_with_rdoc(limit)
  dmp = _dump_without_rdoc(limit)
  dmp[15] = @has_rdoc if dmp[15] == true
  dmp
end

#has_rdoc?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/yard/rubygems/specification.rb', line 15

def has_rdoc?
  (@has_rdoc ||= true) && @has_rdoc != 'yard'
end

#has_yardocObject Also known as: has_yardoc?



10
11
12
# File 'lib/yard/rubygems/specification.rb', line 10

def has_yardoc
  @has_rdoc == 'yard'
end

#has_yardoc=(value) ⇒ Object

Since:

  • 0.5.3



6
7
8
# File 'lib/yard/rubygems/specification.rb', line 6

def has_yardoc=(value)
  @has_rdoc = value ? 'yard' : false
end