File: ref_c_falseclass.xml

package info (click to toggle)
rubybook 0.2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,252 kB
  • ctags: 1,043
  • sloc: xml: 60,486; makefile: 25
file content (59 lines) | stat: -rw-r--r-- 1,945 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<ppdoc>
<copyright>
    Copyright (c) 2001 by Addison Wesley Longman.  This
    material may be distributed only subject to the terms and
    conditions set forth in the Open Publication License, v1.0 or
    later (the latest version is presently available at
    http://www.opencontent.org/openpub/).
</copyright>
<class name="FalseClass" super="Object" type="class">
  The global value <const>false</const> is the only instance of class
  <classname>FalseClass</classname> and represents a logically false value in boolean
  expressions. The class provides operators allowing <const>false</const>
  to participate correctly in logical expressions.
<p/>
  <methods type="instance">
        <method name="&amp;" ref="_et">
      <callseq>
        <const>false</const> &amp; <obj>anObject</obj>
        <returns><const>false</const></returns>
      </callseq>
      <desc>
<p/>
      And---Returns <const>false</const>. <obj>anObject</obj> is always
      evaluated as it is the argument to a method call---there is no
      short-circuit evaluation in this case.
<p/>
      </desc>
    </method>
<p/>
        <method name="^" ref="_up">
      <callseq>
        <const>false</const> ^ <obj>anObject</obj>
        <returns><const>true</const> or <const>false</const></returns>
      </callseq>
      <desc>
<p/>
      Exclusive Or---If <obj>anObject</obj> is <const>nil</const> or
      <const>false</const>, returns <const>false</const>; otherwise, returns <const>true</const>.
<p/>
      </desc>
    </method>
<p/>
        <method name="|" ref="_ba">
      <callseq>
        <const>false</const> | <obj>anObject</obj>
        <returns><const>true</const> or <const>false</const></returns>
      </callseq>
      <desc>
<p/>
      Or---Returns <const>false</const> if <obj>anObject</obj> is
      <const>nil</const> or <const>false</const>; <const>true</const> otherwise.
<p/>
      </desc>
    </method>
<p/>
  </methods>
<p/>
</class>
</ppdoc>