doc/TaskJuggler/AttributeBase.html in taskjuggler-0.0.8 vs doc/TaskJuggler/AttributeBase.html in taskjuggler-0.0.9

- old
+ new

@@ -67,10 +67,12 @@ <div id="method-list-section" class="section"> <h3 class="section-header">Methods</h3> <ul class="link-list"> + <li><a href="#method-c-mode">::mode</a></li> + <li><a href="#method-c-new">::new</a></li> <li><a href="#method-c-setMode">::setMode</a></li> <li><a href="#method-i-get">#get</a></li> @@ -81,10 +83,12 @@ <li><a href="#method-i-name">#name</a></li> <li><a href="#method-i-nil%3F">#nil?</a></li> + <li><a href="#method-i-reset">#reset</a></li> + <li><a href="#method-i-set">#set</a></li> <li><a href="#method-i-to_num">#to_num</a></li> <li><a href="#method-i-to_rti">#to_rti</a></li> @@ -149,10 +153,12 @@ <li><a href="../TaskJuggler/AttributeBase.html">TaskJuggler::AttributeBase</a></li> <li><a href="../TaskJuggler/AttributeDefinition.html">TaskJuggler::AttributeDefinition</a></li> + <li><a href="../TaskJuggler/AttributeOverwrite.html">TaskJuggler::AttributeOverwrite</a></li> + <li><a href="../TaskJuggler/BatchProcessor.html">TaskJuggler::BatchProcessor</a></li> <li><a href="../TaskJuggler/Booking.html">TaskJuggler::Booking</a></li> <li><a href="../TaskJuggler/BookingListAttribute.html">TaskJuggler::BookingListAttribute</a></li> @@ -227,10 +233,12 @@ <li><a href="../TaskJuggler/HTMLGraphics.html">TaskJuggler::HTMLGraphics</a></li> <li><a href="../TaskJuggler/Interval.html">TaskJuggler::Interval</a></li> + <li><a href="../TaskJuggler/IntervalList.html">TaskJuggler::IntervalList</a></li> + <li><a href="../TaskJuggler/IntervalListAttribute.html">TaskJuggler::IntervalListAttribute</a></li> <li><a href="../TaskJuggler/JobInfo.html">TaskJuggler::JobInfo</a></li> <li><a href="../TaskJuggler/Journal.html">TaskJuggler::Journal</a></li> @@ -259,10 +267,12 @@ <li><a href="../TaskJuggler/LogicalExpression.html">TaskJuggler::LogicalExpression</a></li> <li><a href="../TaskJuggler/LogicalExpressionAttribute.html">TaskJuggler::LogicalExpressionAttribute</a></li> + <li><a href="../TaskJuggler/LogicalExpressionListAttribute.html">TaskJuggler::LogicalExpressionListAttribute</a></li> + <li><a href="../TaskJuggler/LogicalFlag.html">TaskJuggler::LogicalFlag</a></li> <li><a href="../TaskJuggler/LogicalFunction.html">TaskJuggler::LogicalFunction</a></li> <li><a href="../TaskJuggler/LogicalOperation.html">TaskJuggler::LogicalOperation</a></li> @@ -539,10 +549,12 @@ <li><a href="../TaskJuggler/VimSyntax.html">TaskJuggler::VimSyntax</a></li> <li><a href="../TaskJuggler/WebServer.html">TaskJuggler::WebServer</a></li> + <li><a href="../TaskJuggler/WelcomePage.html">TaskJuggler::WelcomePage</a></li> + <li><a href="../TaskJuggler/WorkingHours.html">TaskJuggler::WorkingHours</a></li> <li><a href="../TaskJuggler/WorkingHoursAttribute.html">TaskJuggler::WorkingHoursAttribute</a></li> <li><a href="../TaskJuggler/XMLBlob.html">TaskJuggler::XMLBlob</a></li> @@ -565,12 +577,10 @@ <li><a href="../RuntimeConfig.html">RuntimeConfig</a></li> <li><a href="../String.html">String</a></li> - <li><a href="../StringIO.html">StringIO</a></li> - </ul> <div id="no-class-search-results" style="display: none;">No matching classes.</div> </div> @@ -690,10 +700,46 @@ <div id="public-class-method-details" class="method-section section"> <h3 class="section-header">Public Class Methods</h3> + <div id="mode-method" class="method-detail "> + <a name="method-c-mode"></a> + + <div class="method-heading"> + + <span class="method-name">mode</span><span + class="method-args">()</span> + <span class="method-click-advice">click to toggle source</span> + + </div> + + <div class="method-description"> + + <p> +Return the current attribute setting mode. +</p> + + + + <div class="method-source-code" + id="mode-source"> +<pre> + <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 70</span> +70: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">AttributeBase</span>.<span class="ruby-identifier">mode</span> +71: <span class="ruby-identifier">@@mode</span> +72: <span class="ruby-keyword kw">end</span></pre> + </div> + + </div> + + + + + </div> + + <div id="new-method" class="method-detail "> <a name="method-c-new"></a> <div class="method-heading"> @@ -715,31 +761,17 @@ <div class="method-source-code" id="new-source"> <pre> - <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 34</span> -34: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">type</span>) -35: <span class="ruby-ivar">@type</span> = <span class="ruby-identifier">type</span> -36: <span class="ruby-ivar">@property</span> = <span class="ruby-identifier">property</span> -37: <span class="ruby-comment cmt"># Flag that marks whether the value of this attribute was inherited from</span> -38: <span class="ruby-comment cmt"># the parent PropertyTreeNode.</span> -39: <span class="ruby-ivar">@inherited</span> = <span class="ruby-keyword kw">false</span> -40: <span class="ruby-comment cmt"># Flag that marks whether the value of this attribute was provided by the</span> -41: <span class="ruby-comment cmt"># user (in contrast to being calculated).</span> -42: <span class="ruby-ivar">@provided</span> = <span class="ruby-keyword kw">false</span> -43: <span class="ruby-comment cmt"># If type is an AttributeDefinition, create the initial value according</span> -44: <span class="ruby-comment cmt"># to the specified default for this type. Otherwise type is the initial</span> -45: <span class="ruby-comment cmt"># value.</span> -46: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@type</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">AttributeDefinition</span>) -47: <span class="ruby-ivar">@value</span> = <span class="ruby-ivar">@type</span>.<span class="ruby-identifier">default</span>.<span class="ruby-identifier">deep_clone</span> -48: <span class="ruby-keyword kw">else</span> -49: <span class="ruby-ivar">@value</span> = <span class="ruby-ivar">@type</span> -50: <span class="ruby-keyword kw">end</span> -51: <span class="ruby-comment cmt"># The mode is flag that controls how value assignments affect the flags.</span> -52: <span class="ruby-identifier">@@mode</span> = <span class="ruby-value">0</span> -53: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 38</span> +38: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">type</span>) +39: <span class="ruby-ivar">@type</span> = <span class="ruby-identifier">type</span> +40: <span class="ruby-ivar">@property</span> = <span class="ruby-identifier">property</span> +41: +42: <span class="ruby-identifier">reset</span> +43: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -769,14 +801,14 @@ <div class="method-source-code" id="set-ode-source"> <pre> - <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 65</span> -65: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">AttributeBase</span>.<span class="ruby-identifier">setMode</span>(<span class="ruby-identifier">mode</span>) -66: <span class="ruby-identifier">@@mode</span> = <span class="ruby-identifier">mode</span> -67: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 76</span> +76: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">AttributeBase</span>.<span class="ruby-identifier">setMode</span>(<span class="ruby-identifier">mode</span>) +77: <span class="ruby-identifier">@@mode</span> = <span class="ruby-identifier">mode</span> +78: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -811,14 +843,14 @@ <div class="method-source-code" id="get-source"> <pre> - <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 92</span> -92: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span> -93: <span class="ruby-ivar">@value</span> -94: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 103</span> +103: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span> +104: <span class="ruby-ivar">@value</span> +105: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -847,14 +879,14 @@ <div class="method-source-code" id="id-source"> <pre> - <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 70</span> -70: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">id</span> -71: <span class="ruby-identifier">type</span>.<span class="ruby-identifier">id</span> -72: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 81</span> +81: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">id</span> +82: <span class="ruby-identifier">type</span>.<span class="ruby-identifier">id</span> +83: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -885,15 +917,15 @@ <div class="method-source-code" id="inherit-source"> <pre> - <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 58</span> -58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inherit</span>(<span class="ruby-identifier">value</span>) -59: <span class="ruby-ivar">@inherited</span> = <span class="ruby-keyword kw">true</span> -60: <span class="ruby-ivar">@value</span> = <span class="ruby-identifier">value</span>.<span class="ruby-identifier">deep_clone</span> -61: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 64</span> +64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inherit</span>(<span class="ruby-identifier">value</span>) +65: <span class="ruby-ivar">@inherited</span> = <span class="ruby-keyword kw">true</span> +66: <span class="ruby-ivar">@value</span> = <span class="ruby-identifier">value</span>.<span class="ruby-identifier">deep_clone</span> +67: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -922,14 +954,14 @@ <div class="method-source-code" id="name-source"> <pre> - <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 75</span> -75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">name</span> -76: <span class="ruby-identifier">type</span>.<span class="ruby-identifier">name</span> -77: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 86</span> +86: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">name</span> +87: <span class="ruby-identifier">type</span>.<span class="ruby-identifier">name</span> +88: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -958,28 +990,75 @@ <div class="method-source-code" id="nil--source"> <pre> - <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 97</span> - 97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nil?</span> - 98: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>) - 99: <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">empty?</span> -100: <span class="ruby-keyword kw">else</span> -101: <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">nil?</span> -102: <span class="ruby-keyword kw">end</span> -103: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 108</span> +108: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nil?</span> +109: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>) +110: <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">empty?</span> +111: <span class="ruby-keyword kw">else</span> +112: <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">nil?</span> +113: <span class="ruby-keyword kw">end</span> +114: <span class="ruby-keyword kw">end</span></pre> </div> </div> </div> + <div id="reset-method" class="method-detail "> + <a name="method-i-reset"></a> + + <div class="method-heading"> + + <span class="method-name">reset</span><span + class="method-args">()</span> + <span class="method-click-advice">click to toggle source</span> + + </div> + + <div class="method-description"> + + <p> +Reset the attribute value to the default value. +</p> + + + + <div class="method-source-code" + id="reset-source"> +<pre> + <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 46</span> +46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset</span> +47: <span class="ruby-ivar">@inherited</span> = <span class="ruby-keyword kw">false</span> +48: <span class="ruby-comment cmt"># Flag that marks whether the value of this attribute was provided by the</span> +49: <span class="ruby-comment cmt"># user (in contrast to being calculated).</span> +50: <span class="ruby-ivar">@provided</span> = <span class="ruby-keyword kw">false</span> +51: <span class="ruby-comment cmt"># If type is an AttributeDefinition, create the initial value according</span> +52: <span class="ruby-comment cmt"># to the specified default for this type. Otherwise type is the initial</span> +53: <span class="ruby-comment cmt"># value.</span> +54: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@type</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">AttributeDefinition</span>) +55: <span class="ruby-ivar">@value</span> = <span class="ruby-ivar">@type</span>.<span class="ruby-identifier">default</span>.<span class="ruby-identifier">deep_clone</span> +56: <span class="ruby-keyword kw">else</span> +57: <span class="ruby-ivar">@value</span> = <span class="ruby-ivar">@type</span> +58: <span class="ruby-keyword kw">end</span> +59: <span class="ruby-keyword kw">end</span></pre> + </div> + + </div> + + + + + </div> + + <div id="set-method" class="method-detail "> <a name="method-i-set"></a> <div class="method-heading"> @@ -999,20 +1078,20 @@ <div class="method-source-code" id="set-source"> <pre> - <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 81</span> -81: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set</span>(<span class="ruby-identifier">value</span>) -82: <span class="ruby-ivar">@value</span> = <span class="ruby-identifier">value</span> -83: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">@@mode</span> -84: <span class="ruby-keyword kw">when</span> <span class="ruby-value">0</span> -85: <span class="ruby-ivar">@provided</span> = <span class="ruby-keyword kw">true</span> -86: <span class="ruby-keyword kw">when</span> <span class="ruby-value">1</span> -87: <span class="ruby-ivar">@inherited</span> = <span class="ruby-keyword kw">true</span> -88: <span class="ruby-keyword kw">end</span> -89: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 92</span> + 92: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set</span>(<span class="ruby-identifier">value</span>) + 93: <span class="ruby-ivar">@value</span> = <span class="ruby-identifier">value</span> + 94: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">@@mode</span> + 95: <span class="ruby-keyword kw">when</span> <span class="ruby-value">0</span> + 96: <span class="ruby-ivar">@provided</span> = <span class="ruby-keyword kw">true</span> + 97: <span class="ruby-keyword kw">when</span> <span class="ruby-value">1</span> + 98: <span class="ruby-ivar">@inherited</span> = <span class="ruby-keyword kw">true</span> + 99: <span class="ruby-keyword kw">end</span> +100: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -1039,18 +1118,18 @@ <div class="method-source-code" id="to-num-source"> <pre> - <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 110</span> -110: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_num</span> -111: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Fixnum</span>) <span class="ruby-operator">||</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Bignum</span>) <span class="ruby-operator">||</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Float</span>) -112: <span class="ruby-ivar">@value</span> -113: <span class="ruby-keyword kw">else</span> -114: <span class="ruby-keyword kw">nil</span> -115: <span class="ruby-keyword kw">end</span> -116: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 121</span> +121: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_num</span> +122: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Fixnum</span>) <span class="ruby-operator">||</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Bignum</span>) <span class="ruby-operator">||</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Float</span>) +123: <span class="ruby-ivar">@value</span> +124: <span class="ruby-keyword kw">else</span> +125: <span class="ruby-keyword kw">nil</span> +126: <span class="ruby-keyword kw">end</span> +127: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -1077,14 +1156,14 @@ <div class="method-source-code" id="to-rti-source"> <pre> - <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 129</span> -129: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_rti</span>(<span class="ruby-identifier">query</span>) -130: <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">RichTextIntermediate</span>) <span class="ruby-operator">?</span> <span class="ruby-operator">!</span><span class="ruby-identifier">value</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> -131: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 140</span> +140: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_rti</span>(<span class="ruby-identifier">query</span>) +141: <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">RichTextIntermediate</span>) <span class="ruby-operator">?</span> <span class="ruby-operator">!</span><span class="ruby-identifier">value</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> +142: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -1113,14 +1192,14 @@ <div class="method-source-code" id="to-s-source"> <pre> - <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 106</span> -106: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">query</span> = <span class="ruby-keyword kw">nil</span>) -107: <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">to_s</span> -108: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 117</span> +117: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">query</span> = <span class="ruby-keyword kw">nil</span>) +118: <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">to_s</span> +119: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -1147,21 +1226,21 @@ <div class="method-source-code" id="to-sort-source"> <pre> - <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 118</span> -118: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_sort</span> -119: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Fixnum</span>) <span class="ruby-operator">||</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Bignum</span>) <span class="ruby-operator">||</span> -120: <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Float</span>) -121: <span class="ruby-ivar">@value</span> -122: <span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value str">'to_s'</span>) -123: <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">to_s</span> -124: <span class="ruby-keyword kw">else</span> -125: <span class="ruby-keyword kw">nil</span> -126: <span class="ruby-keyword kw">end</span> -127: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 129</span> +129: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_sort</span> +130: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Fixnum</span>) <span class="ruby-operator">||</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Bignum</span>) <span class="ruby-operator">||</span> +131: <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Float</span>) +132: <span class="ruby-ivar">@value</span> +133: <span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value str">'to_s'</span>) +134: <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">to_s</span> +135: <span class="ruby-keyword kw">else</span> +136: <span class="ruby-keyword kw">nil</span> +137: <span class="ruby-keyword kw">end</span> +138: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -1190,13 +1269,13 @@ <div class="method-source-code" id="to-tjp-source"> <pre> - <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 134</span> -134: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_tjp</span> -135: <span class="ruby-ivar">@type</span>.<span class="ruby-identifier">id</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot; &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">to_s</span> -136: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/AttributeBase.rb, line 145</span> +145: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_tjp</span> +146: <span class="ruby-ivar">@type</span>.<span class="ruby-identifier">id</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot; &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">to_s</span> +147: <span class="ruby-keyword kw">end</span></pre> </div> </div>