docs/api/classes/Icalendar/Component.src/M000030.html in icalendar-0.97 vs docs/api/classes/Icalendar/Component.src/M000030.html in icalendar-0.98

- old
+ new

@@ -8,10 +8,10 @@ <title>add_component (Icalendar::Component)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line 52</span> + <pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line 54</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_component</span>(<span class="ruby-identifier">component</span>) <span class="ruby-identifier">key</span> = (<span class="ruby-identifier">component</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">downcase</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'s'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'icalendar::'</span>, <span class="ruby-value str">''</span>).<span class="ruby-identifier">to_sym</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@components</span>.<span class="ruby-identifier">has_key?</span> <span class="ruby-identifier">key</span> <span class="ruby-ivar">@components</span>[<span class="ruby-identifier">key</span>] = [] \ No newline at end of file