1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en" lang=
"en">
5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
7 Class: Lyricli::SourceManager
9 — Documentation by YARD
0.8.2.1
13 <link rel=
"stylesheet" href=
"../css/style.css" type=
"text/css" media=
"screen" charset=
"utf-8" />
15 <link rel=
"stylesheet" href=
"../css/common.css" type=
"text/css" media=
"screen" charset=
"utf-8" />
17 <script type=
"text/javascript" charset=
"utf-8">
18 hasFrames = window.top.frames.main ? true : false;
20 framesUrl = "../frames.html#!" + escape(window.location.href);
24 <script type=
"text/javascript" charset=
"utf-8" src=
"../js/jquery.js"></script>
26 <script type=
"text/javascript" charset=
"utf-8" src=
"../js/app.js"></script>
34 <a href=
"../_index.html">Index (S)
</a> »
35 <span class='title'
><span class='object_link'
><a href=
"../Lyricli.html" title=
"Lyricli (module)">Lyricli
</a></span></span>
37 <span class=
"title">SourceManager
</span>
40 <div class=
"noframes"><span class=
"title">(
</span><a href=
"." target=
"_top">no frames
</a><span class=
"title">)
</span></div>
45 <a class=
"full_list_link" id=
"class_list_link"
46 href=
"../class_list.html">
50 <a class=
"full_list_link" id=
"method_list_link"
51 href=
"../method_list.html">
55 <a class=
"full_list_link" id=
"file_list_link"
56 href=
"../file_list.html">
61 <div class=
"clear"></div>
64 <iframe id=
"search_frame"></iframe>
66 <div id=
"content"><h1>Class: Lyricli::SourceManager
74 <dt class=
"r1">Inherits:
</dt>
76 <span class=
"inheritName">Object
</span>
81 <li class=
"next">Lyricli::SourceManager
</li>
84 <a href=
"#" class=
"inheritanceTree">show all
</a>
93 <dt class=
"r2">Includes:
</dt>
94 <dd class=
"r2"><span class='object_link'
><a href=
"Util.html" title=
"Lyricli::Util (module)">Util
</a></span></dd>
100 <dt class=
"r1 last">Defined in:
</dt>
101 <dd class=
"r1 last">lib/lyricli/source_manager.rb
</dd>
104 <div class=
"clear"></div>
115 Instance Method Summary
116 <small>(
<a href=
"#" class=
"summary_toggle">collapse
</a>)
</small>
122 <span class=
"summary_signature">
124 <a href=
"#available_sources-instance_method" title=
"#available_sources (instance method)">- (Object)
<strong>available_sources
</strong>(format = false)
</a>
138 <span class=
"summary_desc"><div class='inline'
></div></span>
144 <span class=
"summary_signature">
146 <a href=
"#current_track-instance_method" title=
"#current_track (instance method)">- (Object)
<strong>current_track
</strong> </a>
160 <span class=
"summary_desc"><div class='inline'
></div></span>
166 <span class=
"summary_signature">
168 <a href=
"#disable-instance_method" title=
"#disable (instance method)">- (Object)
<strong>disable
</strong>(source_name)
</a>
182 <span class=
"summary_desc"><div class='inline'
></div></span>
188 <span class=
"summary_signature">
190 <a href=
"#enable-instance_method" title=
"#enable (instance method)">- (Object)
<strong>enable
</strong>(source_name)
</a>
204 <span class=
"summary_desc"><div class='inline'
></div></span>
210 <span class=
"summary_signature">
212 <a href=
"#format_sources-instance_method" title=
"#format_sources (instance method)">- (Object)
<strong>format_sources
</strong>(sources)
</a>
226 <span class=
"summary_desc"><div class='inline'
></div></span>
232 <span class=
"summary_signature">
234 <a href=
"#initialize-instance_method" title=
"#initialize (instance method)">- (SourceManager)
<strong>initialize
</strong> </a>
241 <span class=
"note title constructor">constructor
</span>
250 <span class=
"summary_desc"><div class='inline'
><p>
251 A new instance of SourceManager.
259 <span class=
"summary_signature">
261 <a href=
"#reset-instance_method" title=
"#reset (instance method)">- (Object)
<strong>reset
</strong>(source_name)
</a>
275 <span class=
"summary_desc"><div class='inline'
></div></span>
292 <h3 class=
"inherited">Methods included from
<span class='object_link'
><a href=
"Util.html" title=
"Lyricli::Util (module)">Util
</a></span></h3>
293 <p class=
"inherited"><span class='object_link'
><a href=
"Util.html#camelize-instance_method" title=
"Lyricli::Util#camelize (method)">#camelize
</a></span>,
<span class='object_link'
><a href=
"Util.html#parse_class-instance_method" title=
"Lyricli::Util#parse_class (method)">#parse_class
</a></span>,
<span class='object_link'
><a href=
"Util.html#sanitize_param-instance_method" title=
"Lyricli::Util#sanitize_param (method)">#sanitize_param
</a></span></p>
294 <div id=
"constructor_details" class=
"method_details_list">
295 <h2>Constructor Details
</h2>
297 <div class=
"method_details first">
298 <h3 class=
"signature first" id=
"initialize-instance_method">
300 - (
<tt><span class='object_link'
><a href=
"" title=
"Lyricli::SourceManager (class)">SourceManager
</a></span></tt>)
<strong>initialize
</strong>
306 </h3><div class=
"docstring">
307 <div class=
"discussion">
309 A new instance of SourceManager
318 </div><table class=
"source_code">
338 <pre class=
"code"><span class=
"info file"># File 'lib/lyricli/source_manager.rb', line
6</span>
340 <span class='kw'
>def
</span> <span class='id identifier rubyid_initialize'
>initialize
</span>
341 <span class='ivar'
>@enabled_sources
</span> <span class='op'
>=
</span> <span class='lbracket'
>[
</span><span class='rbracket'
>]
</span>
342 <span class='ivar'
>@config
</span> <span class='op'
>=
</span> <span class='const'
>Configuration
</span><span class='period'
>.
</span><span class='id identifier rubyid_instance'
>instance
</span>
343 <span class='ivar'
>@config
</span><span class='lbracket'
>[
</span><span class='tstring'
><span class='tstring_beg'
>"</span><span class='tstring_content'
>enabled_sources
</span><span class='tstring_end'
>"</span></span><span class='rbracket'
>]
</span><span class='period'
>.
</span><span class='id identifier rubyid_each'
>each
</span> <span class='kw'
>do
</span> <span class='op'
>|
</span><span class='id identifier rubyid_source'
>source
</span><span class='op'
>|
</span>
344 <span class='kw'
>if
</span> <span class='id identifier rubyid_klass'
>klass
</span> <span class='op'
>=
</span> <span class='id identifier rubyid_parse_class'
>parse_class
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_camelize'
>camelize
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_source'
>source
</span><span class='rparen'
>)
</span><span class='rparen'
>)
</span>
345 <span class='id identifier rubyid_current_source'
>current_source
</span> <span class='op'
>=
</span> <span class='id identifier rubyid_klass'
>klass
</span><span class='period'
>.
</span><span class='id identifier rubyid_new'
>new
</span>
346 <span class='ivar'
>@enabled_sources
</span> <span class='op'
><<</span> <span class='id identifier rubyid_current_source'
>current_source
</span>
347 <span class='kw'
>else
</span>
348 <span class='id identifier rubyid_raise'
>raise
</span> <span class='const'
>StartSourceException
</span>
349 <span class='kw'
>end
</span>
350 <span class='kw'
>end
</span>
351 <span class='kw'
>end
</span></pre>
360 <div id=
"instance_method_details" class=
"method_details_list">
361 <h2>Instance Method Details
</h2>
364 <div class=
"method_details first">
365 <h3 class=
"signature first" id=
"available_sources-instance_method">
367 - (
<tt>Object
</tt>)
<strong>available_sources
</strong>(format = false)
373 </h3><table class=
"source_code">
398 <pre class=
"code"><span class=
"info file"># File 'lib/lyricli/source_manager.rb', line
81</span>
400 <span class='kw'
>def
</span> <span class='id identifier rubyid_available_sources'
>available_sources
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_format'
>format
</span> <span class='op'
>=
</span> <span class='kw'
>false
</span><span class='rparen'
>)
</span>
401 <span class='id identifier rubyid_path_root'
>path_root
</span> <span class='op'
>=
</span> <span class='const'
>File
</span><span class='period'
>.
</span><span class='id identifier rubyid_expand_path'
>expand_path
</span><span class='lparen'
>(
</span><span class='const'
>File
</span><span class='period'
>.
</span><span class='id identifier rubyid_dirname'
>dirname
</span><span class='lparen'
>(
</span><span class='kw'
>__FILE__
</span><span class='rparen'
>)
</span><span class='rparen'
>)
</span>
402 <span class='id identifier rubyid_sources'
>sources
</span> <span class='op'
>=
</span> <span class='const'
>Dir
</span><span class='lbracket'
>[
</span><span class='id identifier rubyid_path_root'
>path_root
</span><span class='op'
>+
</span><span class='tstring'
><span class='tstring_beg'
>"</span><span class='tstring_content'
>/sources/*.rb
</span><span class='tstring_end'
>"</span></span><span class='rbracket'
>]
</span><span class='period'
>.
</span><span class='id identifier rubyid_map'
>map
</span><span class='lbrace'
>{
</span> <span class='op'
>|
</span><span class='id identifier rubyid_s'
>s
</span><span class='op'
>|
</span>
403 <span class='id identifier rubyid_name'
>name
</span> <span class='op'
>=
</span> <span class='id identifier rubyid_s'
>s
</span><span class='period'
>.
</span><span class='id identifier rubyid_split'
>split
</span><span class='lparen'
>(
</span><span class='tstring'
><span class='tstring_beg'
>"</span><span class='tstring_content'
>/
</span><span class='tstring_end'
>"</span></span><span class='rparen'
>)
</span><span class='period'
>.
</span><span class='id identifier rubyid_last'
>last
</span><span class='period'
>.
</span><span class='id identifier rubyid_gsub'
>gsub
</span><span class='lparen'
>(
</span><span class='tstring'
><span class='regexp_beg'
>/
</span><span class='tstring_content'
>\.rb
</span><span class='regexp_end'
>/
</span></span><span class='comma'
>,
</span> <span class='tstring'
><span class='tstring_beg'
>"</span><span class='tstring_end'
>"</span></span><span class='rparen'
>)
</span>
405 <span class='comment'
># Add a star to denote enabled sources
406 </span> <span class='id identifier rubyid_name'
>name
</span>
407 <span class='rbrace'
>}
</span>
409 <span class='comment'
># Remove arguments (Hack?) We don't want anybody to touch tihs one.
410 </span> <span class='id identifier rubyid_sources'
>sources
</span><span class='period'
>.
</span><span class='id identifier rubyid_delete'
>delete
</span><span class='lparen'
>(
</span><span class='tstring'
><span class='tstring_beg'
>"</span><span class='tstring_content'
>arguments
</span><span class='tstring_end'
>"</span></span><span class='rparen'
>)
</span>
411 <span class='kw'
>if
</span> <span class='id identifier rubyid_format'
>format
</span>
412 <span class='id identifier rubyid_format_sources'
>format_sources
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_sources'
>sources
</span><span class='rparen'
>)
</span>
413 <span class='kw'
>else
</span>
414 <span class='id identifier rubyid_sources'
>sources
</span>
415 <span class='kw'
>end
</span>
416 <span class='kw'
>end
</span></pre>
422 <div class=
"method_details ">
423 <h3 class=
"signature " id=
"current_track-instance_method">
425 - (
<tt>Object
</tt>)
<strong>current_track
</strong>
431 </h3><table class=
"source_code">
459 <pre class=
"code"><span class=
"info file"># File 'lib/lyricli/source_manager.rb', line
60</span>
461 <span class='kw'
>def
</span> <span class='id identifier rubyid_current_track'
>current_track
</span>
462 <span class='id identifier rubyid_track'
>track
</span> <span class='op'
>=
</span> <span class='kw'
>nil
</span>
463 <span class='id identifier rubyid_lock'
>lock
</span> <span class='op'
>=
</span> <span class='kw'
>false
</span>
464 <span class='ivar'
>@enabled_sources
</span><span class='period'
>.
</span><span class='id identifier rubyid_each'
>each
</span> <span class='kw'
>do
</span> <span class='op'
>|
</span><span class='id identifier rubyid_source'
>source
</span><span class='op'
>|
</span>
465 <span class='kw'
>begin
</span>
466 <span class='id identifier rubyid_current_track'
>current_track
</span> <span class='op'
>=
</span> <span class='id identifier rubyid_source'
>source
</span><span class='period'
>.
</span><span class='id identifier rubyid_current_track'
>current_track
</span>
468 <span class='comment'
># This is a special thing for arguments. The thing is, they need to
469 </span> <span class='comment'
># be inputted manually. So, if they are present they won't allow
470 </span> <span class='comment'
># anyone else to give results. Makes sense, yet a bit hacky.
471 </span> <span class='kw'
>unless
</span> <span class='id identifier rubyid_current_track'
>current_track
</span><span class='lbracket'
>[
</span><span class='symbol'
>:artist
</span><span class='rbracket'
>]
</span><span class='period'
>.
</span><span class='id identifier rubyid_nil?'
>nil?
</span> <span class='op'
>||
</span> <span class='id identifier rubyid_current_track'
>current_track
</span><span class='lbracket'
>[
</span><span class='symbol'
>:artist
</span><span class='rbracket'
>]
</span><span class='period'
>.
</span><span class='id identifier rubyid_empty?'
>empty?
</span> <span class='op'
>||
</span> <span class='id identifier rubyid_current_track'
>current_track
</span><span class='lbracket'
>[
</span><span class='symbol'
>:song
</span><span class='rbracket'
>]
</span><span class='period'
>.
</span><span class='id identifier rubyid_nil?'
>nil?
</span> <span class='op'
>||
</span> <span class='id identifier rubyid_current_track'
>current_track
</span><span class='lbracket'
>[
</span><span class='symbol'
>:song
</span><span class='rbracket'
>]
</span><span class='period'
>.
</span><span class='id identifier rubyid_empty?'
>empty?
</span>
472 <span class='id identifier rubyid_track'
>track
</span> <span class='op'
>=
</span> <span class='id identifier rubyid_current_track'
>current_track
</span> <span class='kw'
>unless
</span> <span class='id identifier rubyid_lock'
>lock
</span>
473 <span class='id identifier rubyid_lock'
>lock
</span> <span class='op'
>=
</span> <span class='kw'
>true
</span> <span class='kw'
>if
</span> <span class='id identifier rubyid_source'
>source
</span><span class='period'
>.
</span><span class='id identifier rubyid_class'
>class
</span><span class='period'
>.
</span><span class='id identifier rubyid_name'
>name
</span> <span class='op'
>==
</span> <span class='tstring'
><span class='tstring_beg'
>"</span><span class='tstring_content'
>arguments
</span><span class='tstring_end'
>"</span></span>
474 <span class='kw'
>end
</span>
475 <span class='kw'
>rescue
</span>
476 <span class='id identifier rubyid_raise'
>raise
</span> <span class='const'
>SourceConfigurationException
</span>
477 <span class='kw'
>end
</span>
478 <span class='kw'
>end
</span>
479 <span class='id identifier rubyid_track'
>track
</span>
480 <span class='kw'
>end
</span></pre>
486 <div class=
"method_details ">
487 <h3 class=
"signature " id=
"disable-instance_method">
489 - (
<tt>Object
</tt>)
<strong>disable
</strong>(source_name)
495 </h3><table class=
"source_code">
515 <pre class=
"code"><span class=
"info file"># File 'lib/lyricli/source_manager.rb', line
34</span>
517 <span class='kw'
>def
</span> <span class='id identifier rubyid_disable'
>disable
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_source_name'
>source_name
</span><span class='rparen'
>)
</span>
518 <span class='kw'
>if
</span> <span class='id identifier rubyid_available_sources'
>available_sources
</span><span class='period'
>.
</span><span class='id identifier rubyid_include?'
>include?
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_source_name'
>source_name
</span><span class='rparen'
>)
</span>
519 <span class='kw'
>if
</span> <span class='id identifier rubyid_klass'
>klass
</span> <span class='op'
>=
</span> <span class='id identifier rubyid_parse_class'
>parse_class
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_camelize'
>camelize
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_source_name'
>source_name
</span><span class='rparen'
>)
</span><span class='rparen'
>)
</span>
520 <span class='ivar'
>@config
</span><span class='lbracket'
>[
</span><span class='tstring'
><span class='tstring_beg'
>"</span><span class='tstring_content'
>enabled_sources
</span><span class='tstring_end'
>"</span></span><span class='rbracket'
>]
</span><span class='period'
>.
</span><span class='id identifier rubyid_delete'
>delete
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_klass'
>klass
</span><span class='period'
>.
</span><span class='id identifier rubyid_name'
>name
</span><span class='rparen'
>)
</span>
521 <span class='ivar'
>@config
</span><span class='period'
>.
</span><span class='id identifier rubyid_save_config'
>save_config
</span>
522 <span class='kw'
>else
</span>
523 <span class='id identifier rubyid_raise'
>raise
</span> <span class='const'
>DisableSourceException
</span>
524 <span class='kw'
>end
</span>
525 <span class='kw'
>else
</span>
526 <span class='id identifier rubyid_raise'
>raise
</span> <span class='const'
>UnknownSource
</span>
527 <span class='kw'
>end
</span>
528 <span class='kw'
>end
</span></pre>
534 <div class=
"method_details ">
535 <h3 class=
"signature " id=
"enable-instance_method">
537 - (
<tt>Object
</tt>)
<strong>enable
</strong>(source_name)
543 </h3><table class=
"source_code">
565 <pre class=
"code"><span class=
"info file"># File 'lib/lyricli/source_manager.rb', line
19</span>
567 <span class='kw'
>def
</span> <span class='id identifier rubyid_enable'
>enable
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_source_name'
>source_name
</span><span class='rparen'
>)
</span>
568 <span class='kw'
>if
</span> <span class='id identifier rubyid_available_sources'
>available_sources
</span><span class='period'
>.
</span><span class='id identifier rubyid_include?'
>include?
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_source_name'
>source_name
</span><span class='rparen'
>)
</span>
569 <span class='kw'
>if
</span> <span class='id identifier rubyid_klass'
>klass
</span> <span class='op'
>=
</span> <span class='id identifier rubyid_parse_class'
>parse_class
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_camelize'
>camelize
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_source_name'
>source_name
</span><span class='rparen'
>)
</span><span class='rparen'
>)
</span>
570 <span class='id identifier rubyid_klass'
>klass
</span><span class='period'
>.
</span><span class='id identifier rubyid_enable'
>enable
</span>
571 <span class='ivar'
>@config
</span><span class='lbracket'
>[
</span><span class='tstring'
><span class='tstring_beg'
>"</span><span class='tstring_content'
>enabled_sources
</span><span class='tstring_end'
>"</span></span><span class='rbracket'
>]
</span> <span class='op'
><<</span> <span class='id identifier rubyid_klass'
>klass
</span><span class='period'
>.
</span><span class='id identifier rubyid_name'
>name
</span>
572 <span class='ivar'
>@config
</span><span class='lbracket'
>[
</span><span class='tstring'
><span class='tstring_beg'
>"</span><span class='tstring_content'
>enabled_sources
</span><span class='tstring_end'
>"</span></span><span class='rbracket'
>]
</span><span class='period'
>.
</span><span class='id identifier rubyid_uniq!'
>uniq!
</span>
573 <span class='ivar'
>@config
</span><span class='period'
>.
</span><span class='id identifier rubyid_save_config'
>save_config
</span>
574 <span class='kw'
>else
</span>
575 <span class='id identifier rubyid_raise'
>raise
</span> <span class='const'
>EnableSourceException
</span>
576 <span class='kw'
>end
</span>
577 <span class='kw'
>else
</span>
578 <span class='id identifier rubyid_raise'
>raise
</span> <span class='const'
>UnknownSource
</span>
579 <span class='kw'
>end
</span>
580 <span class='kw'
>end
</span></pre>
586 <div class=
"method_details ">
587 <h3 class=
"signature " id=
"format_sources-instance_method">
589 - (
<tt>Object
</tt>)
<strong>format_sources
</strong>(sources)
595 </h3><table class=
"source_code">
609 <pre class=
"code"><span class=
"info file"># File 'lib/lyricli/source_manager.rb', line
99</span>
611 <span class='kw'
>def
</span> <span class='id identifier rubyid_format_sources'
>format_sources
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_sources'
>sources
</span><span class='rparen'
>)
</span>
612 <span class='id identifier rubyid_sources'
>sources
</span><span class='period'
>.
</span><span class='id identifier rubyid_map'
>map
</span><span class='lbrace'
>{
</span> <span class='op'
>|
</span><span class='id identifier rubyid_s'
>s
</span><span class='op'
>|
</span>
613 <span class='id identifier rubyid_s'
>s
</span> <span class='op'
><<</span> <span class='tstring'
><span class='tstring_beg'
>"</span><span class='tstring_content'
>*
</span><span class='tstring_end'
>"</span></span> <span class='kw'
>if
</span> <span class='ivar'
>@config
</span><span class='lbracket'
>[
</span><span class='tstring'
><span class='tstring_beg'
>"</span><span class='tstring_content'
>enabled_sources
</span><span class='tstring_end'
>"</span></span><span class='rbracket'
>]
</span><span class='period'
>.
</span><span class='id identifier rubyid_include?'
>include?
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_s'
>s
</span><span class='rparen'
>)
</span>
614 <span class='id identifier rubyid_s'
>s
</span>
615 <span class='rbrace'
>}
</span>
616 <span class='kw'
>end
</span></pre>
622 <div class=
"method_details ">
623 <h3 class=
"signature " id=
"reset-instance_method">
625 - (
<tt>Object
</tt>)
<strong>reset
</strong>(source_name)
631 </h3><table class=
"source_code">
651 <pre class=
"code"><span class=
"info file"># File 'lib/lyricli/source_manager.rb', line
47</span>
653 <span class='kw'
>def
</span> <span class='id identifier rubyid_reset'
>reset
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_source_name'
>source_name
</span><span class='rparen'
>)
</span>
654 <span class='kw'
>if
</span> <span class='id identifier rubyid_available_sources'
>available_sources
</span><span class='period'
>.
</span><span class='id identifier rubyid_include?'
>include?
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_source_name'
>source_name
</span><span class='rparen'
>)
</span>
655 <span class='kw'
>if
</span> <span class='id identifier rubyid_klass'
>klass
</span> <span class='op'
>=
</span> <span class='id identifier rubyid_parse_class'
>parse_class
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_camelize'
>camelize
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_source_name'
>source_name
</span><span class='rparen'
>)
</span><span class='rparen'
>)
</span>
656 <span class='id identifier rubyid_klass'
>klass
</span><span class='period'
>.
</span><span class='id identifier rubyid_reset'
>reset
</span>
657 <span class='id identifier rubyid_disable'
>disable
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_source_name'
>source_name
</span><span class='rparen'
>)
</span>
658 <span class='kw'
>else
</span>
659 <span class='id identifier rubyid_raise'
>raise
</span> <span class='const'
>ResetSourceException
</span>
660 <span class='kw'
>end
</span>
661 <span class='kw'
>else
</span>
662 <span class='id identifier rubyid_raise'
>raise
</span> <span class='const'
>UnknownSource
</span>
663 <span class='kw'
>end
</span>
664 <span class='kw'
>end
</span></pre>
675 Generated on Sat Oct
6 02:
05:
51 2012 by
676 <a href=
"http://yardoc.org" title=
"Yay! A Ruby Documentation Tool" target=
"_parent">yard
</a>
677 0.8.2.1 (ruby-
1.9.2).