File: defined%3F

package info (click to toggle)
libdb2-ruby 0.5.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,352 kB
  • ctags: 2,743
  • sloc: ansic: 11,156; ruby: 6,199; cpp: 6,064; makefile: 86; sh: 31
file content (16 lines) | stat: -rw-r--r-- 526 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<entry index='d'>
<name>defined?</name>
<reference>method</reference>
<reference>ruby</reference>
<content>
    Operator to examine whether the various expression is actually defined.
    It returns the string to show the type of the expression if defined,
    and returns nil if not defined.
    While defined? looks like the ((method|Method)),
    it is the built-in operator of ((Ruby)),
    and it doesn't evaluate arguments.
    Therefore, there'll be no output with:

        defined? print("abc\n")
</content>
</entry>