@@ -344,12 +344,6 @@ class RDoc::Options
344344 # Indicates if files of test suites should be skipped
345345 attr_accessor :skip_tests
346346
347- ##
348- # Meta tags to be included in the HTML header, such as keywords, description,
349- # author and others. This option is a hash where the keys are the meta tag
350- # name and the values are the content of the meta tag.
351- attr_accessor :meta_tags
352-
353347 def initialize loaded_options = nil # :nodoc:
354348 init_ivars
355349 override loaded_options if loaded_options
@@ -398,7 +392,6 @@ def init_ivars # :nodoc:
398392 @encoding = Encoding ::UTF_8
399393 @charset = @encoding . name
400394 @skip_tests = true
401- @meta_tags = { }
402395 end
403396
404397 def init_with map # :nodoc:
@@ -423,7 +416,6 @@ def init_with map # :nodoc:
423416 @title = map [ 'title' ]
424417 @visibility = map [ 'visibility' ]
425418 @webcvs = map [ 'webcvs' ]
426- @meta_tags = map [ 'meta_tags' ]
427419
428420 @rdoc_include = sanitize_path map [ 'rdoc_include' ]
429421 @static_path = sanitize_path map [ 'static_path' ]
@@ -456,7 +448,6 @@ def override map # :nodoc:
456448 @title = map [ 'title' ] if map . has_key? ( 'title' )
457449 @visibility = map [ 'visibility' ] if map . has_key? ( 'visibility' )
458450 @webcvs = map [ 'webcvs' ] if map . has_key? ( 'webcvs' )
459- @meta_tags = map [ 'meta_tags' ] if map . has_key? ( 'meta_tags' )
460451
461452 if map . has_key? ( 'rdoc_include' )
462453 @rdoc_include = sanitize_path map [ 'rdoc_include' ]
@@ -484,8 +475,7 @@ def == other # :nodoc:
484475 @template == other . template and
485476 @title == other . title and
486477 @visibility == other . visibility and
487- @webcvs == other . webcvs and
488- @meta_tags == other . meta_tags
478+ @webcvs == other . webcvs
489479 end
490480
491481 ##
@@ -802,15 +792,6 @@ def parse argv
802792
803793 opt . separator nil
804794
805- opt . on ( "-mTAGS" , "--meta-tags=TAGS" ,
806- "Meta tags to be included in the HTML head" ) do |value |
807- @meta_tags = JSON . parse ( value )
808- rescue JSON ::ParserError , TypeError
809- raise OptionParser ::InvalidArgument , "Invalid value for --meta-tags. Should be a JSON string"
810- end
811-
812- opt . separator nil
813-
814795 opt . on ( "--extension=NEW=OLD" , "-E" ,
815796 "Treat files ending with .new as if they" ,
816797 "ended with .old. Using '-E cgi=rb' will" ,
0 commit comments