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::Configuration
9 — Documentation by YARD
0.8.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 (C)
</a> »
35 <span class='title'
><span class='object_link'
><a href=
"../Lyricli.html" title=
"Lyricli (module)">Lyricli
</a></span></span>
37 <span class=
"title">Configuration
</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::Configuration
74 <dt class=
"r1">Inherits:
</dt>
76 <span class=
"inheritName">Object
</span>
81 <li class=
"next">Lyricli::Configuration
</li>
84 <a href=
"#" class=
"inheritanceTree">show all
</a>
96 <dt class=
"r2 last">Defined in:
</dt>
97 <dd class=
"r2 last">lib/lyricli/configuration.rb
</dd>
100 <div class=
"clear"></div>
103 <h2>Constant Summary
</h2>
105 <dl class=
"constants">
107 <dt id=
"instance-classvariable" class=
"">@@instance =
110 <dd><pre class=
"code"><span class='const'
>Configuration
</span><span class='period'
>.
</span><span class='id identifier rubyid_new'
>new
</span></pre></dd>
124 <small>(
<a href=
"#" class=
"summary_toggle">collapse
</a>)
</small>
130 <span class=
"summary_signature">
132 <a href=
"#instance-class_method" title=
"instance (class method)">+ (Object)
<strong>instance
</strong> </a>
146 <span class=
"summary_desc"><div class='inline'
></div></span>
154 Instance Method Summary
155 <small>(
<a href=
"#" class=
"summary_toggle">collapse
</a>)
</small>
161 <span class=
"summary_signature">
163 <a href=
"#%5B%5D-instance_method" title=
"#[] (instance method)">- (Object)
<strong>[]
</strong>(key)
</a>
177 <span class=
"summary_desc"><div class='inline'
></div></span>
183 <span class=
"summary_signature">
185 <a href=
"#%5B%5D%3D-instance_method" title=
"#[]= (instance method)">- (Object)
<strong>[]=
</strong>(key, value)
</a>
199 <span class=
"summary_desc"><div class='inline'
></div></span>
205 <span class=
"summary_signature">
207 <a href=
"#initialize-instance_method" title=
"#initialize (instance method)">- (Configuration)
<strong>initialize
</strong> </a>
214 <span class=
"note title constructor">constructor
</span>
223 <span class=
"summary_desc"><div class='inline'
><p>
224 A new instance of Configuration.
234 <div id=
"constructor_details" class=
"method_details_list">
235 <h2>Constructor Details
</h2>
237 <div class=
"method_details first">
238 <h3 class=
"signature first" id=
"initialize-instance_method">
240 - (
<tt><span class='object_link'
><a href=
"" title=
"Lyricli::Configuration (class)">Configuration
</a></span></tt>)
<strong>initialize
</strong>
246 </h3><div class=
"docstring">
247 <div class=
"discussion">
249 A new instance of Configuration
258 </div><table class=
"source_code">
270 <pre class=
"code"><span class=
"info file"># File 'lib/lyricli/configuration.rb', line
4</span>
272 <span class='kw'
>def
</span> <span class='id identifier rubyid_initialize'
>initialize
</span>
273 <span class='ivar'
>@config_path
</span> <span class='op'
>=
</span> <span class='tstring'
><span class='tstring_beg'
>"</span><span class='tstring_content'
>~/.lyricli.conf
</span><span class='tstring_end'
>"</span></span>
274 <span class='ivar'
>@defaults_path
</span> <span class='op'
>=
</span> <span class='tstring'
><span class='tstring_beg'
>"</span><span class='tstring_content'
>defaults.json
</span><span class='tstring_end'
>"</span></span>
275 <span class='kw'
>end
</span></pre>
284 <div id=
"class_method_details" class=
"method_details_list">
285 <h2>Class Method Details
</h2>
288 <div class=
"method_details first">
289 <h3 class=
"signature first" id=
"instance-class_method">
291 + (
<tt>Object
</tt>)
<strong>instance
</strong>
297 </h3><table class=
"source_code">
308 <pre class=
"code"><span class=
"info file"># File 'lib/lyricli/configuration.rb', line
11</span>
310 <span class='kw'
>def
</span> <span class='kw'
>self
</span><span class='period'
>.
</span><span class='id identifier rubyid_instance'
>instance
</span>
311 <span class='cvar'
>@@instance
</span>
312 <span class='kw'
>end
</span></pre>
320 <div id=
"instance_method_details" class=
"method_details_list">
321 <h2>Instance Method Details
</h2>
324 <div class=
"method_details first">
325 <h3 class=
"signature first" id=
"[]-instance_method">
327 - (
<tt>Object
</tt>)
<strong>[]
</strong>(key)
333 </h3><table class=
"source_code">
345 <pre class=
"code"><span class=
"info file"># File 'lib/lyricli/configuration.rb', line
15</span>
347 <span class='kw'
>def
</span> <span class='op'
>[]
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_key'
>key
</span><span class='rparen'
>)
</span>
348 <span class='id identifier rubyid_load_config'
>load_config
</span> <span class='kw'
>unless
</span> <span class='ivar'
>@config
</span>
349 <span class='ivar'
>@config
</span><span class='lbracket'
>[
</span><span class='id identifier rubyid_key'
>key
</span><span class='rbracket'
>]
</span>
350 <span class='kw'
>end
</span></pre>
356 <div class=
"method_details ">
357 <h3 class=
"signature " id=
"[]=-instance_method">
359 - (
<tt>Object
</tt>)
<strong>[]=
</strong>(key, value)
365 </h3><table class=
"source_code">
378 <pre class=
"code"><span class=
"info file"># File 'lib/lyricli/configuration.rb', line
20</span>
380 <span class='kw'
>def
</span> <span class='op'
>[]=
</span><span class='lparen'
>(
</span><span class='id identifier rubyid_key'
>key
</span><span class='comma'
>,
</span> <span class='id identifier rubyid_value'
>value
</span><span class='rparen'
>)
</span>
381 <span class='id identifier rubyid_load_config'
>load_config
</span> <span class='kw'
>unless
</span> <span class='ivar'
>@config
</span>
382 <span class='ivar'
>@config
</span><span class='lbracket'
>[
</span><span class='id identifier rubyid_key'
>key
</span><span class='rbracket'
>]
</span> <span class='op'
>=
</span> <span class='id identifier rubyid_value'
>value
</span>
383 <span class='id identifier rubyid_save_config'
>save_config
</span>
384 <span class='kw'
>end
</span></pre>
395 Generated on Fri Oct
5 22:
31:
14 2012 by
396 <a href=
"http://yardoc.org" title=
"Yay! A Ruby Documentation Tool" target=
"_parent">yard
</a>