Class: Gem::Specification

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#has_rdocObject

Returns the value of attribute has_rdoc.



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

def has_rdoc
  @has_rdoc
end

Instance Method Details

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



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

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

#has_rdoc?Boolean

Returns:

  • (Boolean)


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

def has_rdoc?
  @has_rdoc && @has_rdoc != 'yard'
end

#has_yardocObject Also known as: has_yardoc?



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

def has_yardoc
  @has_rdoc == 'yard'
end

#has_yardoc=(value) ⇒ Object

Since:

  • 0.5.3



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

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