@@ -1525,6 +1525,9 @@ def setup
15251525      incmod_private_method  =  @incmod . add_method ( RDoc ::AnyMethod . new ( nil ,  "incmod_private_method" ) ) 
15261526      incmod_private_method . visibility  =  :private 
15271527
1528+       incmod_private_attr  =  @incmod . add_attribute ( RDoc ::Attr . new ( nil ,  "incmod_private_attr" ,  "RW" ,  "" ) ) 
1529+       incmod_private_attr . visibility  =  :private 
1530+ 
15281531      extmod_tl  =  @store . add_file ( "extmod.rb" ) 
15291532      @extmod  =  extmod_tl . add_module ( RDoc ::NormalModule ,  "Extmod" ) 
15301533
@@ -1539,6 +1542,9 @@ def setup
15391542      extmod_private_method  =  @extmod . add_method ( RDoc ::AnyMethod . new ( nil ,  "extmod_private_method" ) ) 
15401543      extmod_private_method . visibility  =  :private 
15411544
1545+       extmod_private_attr  =  @extmod . add_attribute ( RDoc ::Attr . new ( nil ,  "extmod_private_attr" ,  "RW" ,  "" ,  true ) ) 
1546+       extmod_private_attr . visibility  =  :private 
1547+ 
15421548      @klass . add_include ( RDoc ::Include . new ( "Incmod" ,  nil ) ) 
15431549      @klass . add_extend ( RDoc ::Include . new ( "Extmod" ,  nil ) ) 
15441550
@@ -1577,6 +1583,7 @@ def test_embed_mixin_when_true_embeds_methods_and_constants
15771583      assert_equal ( @incmod ,  instance_attr . mixin_from ) 
15781584
15791585      refute ( @klass . method_list . find  {  |m | m . name  == "incmod_private_method"  } ) 
1586+       refute ( @klass . attributes . find  {  |m | m . name  == "incmod_private_attr"  } ) 
15801587
15811588      class_method  =  @klass . method_list . find  {  |m | m . name  == "extmod_method"  } 
15821589      assert ( class_method ,  "class method from extended mixin should be present" ) 
@@ -1589,6 +1596,7 @@ def test_embed_mixin_when_true_embeds_methods_and_constants
15891596      assert_equal ( @extmod ,  class_attr . mixin_from ) 
15901597
15911598      refute ( @klass . method_list . find  {  |m | m . name  == "extmod_private_method"  } ) 
1599+       refute ( @klass . attributes . find  {  |m | m . name  == "extmod_private_attr"  } ) 
15921600
15931601      # assert that sections are also imported 
15941602      constant_section  =  @klass . sections . find  {  |s | s . title  == "Incmod const section"  } 
0 commit comments