Class: Gem::Specification
- Inherits:
-
Object
- Object
- Gem::Specification
- Defined in:
- lib/yard/rubygems/specification.rb
Constant Summary collapse
- @@default_value =
t.freeze
Instance Attribute Summary collapse
-
#has_rdoc ⇒ Object
Returns the value of attribute has_rdoc.
Instance Method Summary collapse
- #_dump_with_rdoc(limit) ⇒ Object (also: #_dump)
- #has_rdoc? ⇒ Boolean
- #has_yardoc ⇒ Object (also: #has_yardoc?)
- #has_yardoc=(value) ⇒ Object
Instance Attribute Details
#has_rdoc ⇒ Object
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
15 16 17 |
# File 'lib/yard/rubygems/specification.rb', line 15 def has_rdoc? (@has_rdoc ||= true) && @has_rdoc != 'yard' end |
#has_yardoc ⇒ Object 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
6 7 8 |
# File 'lib/yard/rubygems/specification.rb', line 6 def has_yardoc=(value) @has_rdoc = value ? 'yard' : false end |