Sha256: 9becb66ba858f4485585efc7f432049ece50ea2dd7106ff3a0c45ab14f53e145

Contents?: true

Size: 1.27 KB

Versions: 3

Compression:

Stored size: 1.27 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>add_component (Icalendar::Timezone)</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/timezone.rb, line 44</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-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-ivar">@components</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">component</span>
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
icalendar-0.97 docs/api/classes/Icalendar/Timezone.src/M000026.html
icalendar-0.98 docs/api/classes/Icalendar/Timezone.src/M000026.html
icalendar-1.0 docs/api/classes/Icalendar/Timezone.src/M000026.html