Sha256: 453e6a05f76c26bc86e4900fb6d9aaa5907b9461cc135f8fc7651c28ece42fab
Contents?: true
Size: 962 Bytes
Versions: 4
Compression:
Stored size: 962 Bytes
Contents
require 'rubygems/specification' class Gem::Specification # @since 0.5.3 def has_yardoc=(value) @has_rdoc = value ? 'yard' : false end def has_yardoc @has_rdoc == 'yard' end undef has_rdoc? def has_rdoc? @has_rdoc && @has_rdoc != 'yard' end alias has_yardoc? has_yardoc # has_rdoc should not be ignored! if respond_to?(:overwrite_accessor) overwrite_accessor(:has_rdoc) { @has_rdoc } overwrite_accessor(:has_rdoc=) {|v| @has_rdoc = v } else attr_accessor :has_rdoc end if defined?(Gem::VERSION) && Gem::VERSION =~ /^1\.7\./ def _dump_with_rdoc(limit) dmp = _dump_without_rdoc(limit) dmp[15] = @has_rdoc dmp end alias _dump_without_rdoc _dump alias _dump _dump_with_rdoc @@default_value[:has_rdoc] = true if defined?(@@default_value) @@attributes << 'has_rdoc' if defined?(@@attributes) @@nil_attributes << 'has_rdoc' if defined?(@@nil_attributes) end end
Version data entries
4 entries across 4 versions & 2 rubygems