This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| if [ $# -eq 0 ];then | |
| echo "Supply client|server" | |
| exit 1 | |
| fi | |
| FILENAME=$1 | |
| openssl genrsa -out $FILENAME.key 1024 |
Constant lookup in Ruby can happen lexically or through the ancestry tree of the receiver(a class or module). You can identify which lookup rules are being applied by the context you're in or by the syntax being used to define a class or module.
A class body that is defined as class A::B::C; …; end will lookup
constants through the ancestry tree when a constant is evaluated in
its class body. Anytime you see A::B::C being used as syntax to
define a class or lookup the value of a constant the ancestry tree
is being used for the lookup.