3/3 Study note part 7
Ruby Standard Library
YAML stands for "Yet Another Markup Language." YAML is a plain text and human readable format that is frequently used for configuration files
ERB stands for "Embedded Ruby" and is a templating system built in Ruby. ERB allows you to create templates and has a special syntax for embedding Ruby variables and code.
FileUtils module allows you to interact with the file system in your Ruby programs. The FileUtils video walks through some common uses of the FileUtils module
__FILE__ : stands fot the directory name of the current file
.expand_path() : show the absolute path of argument
Dir.entries() : show all the files under the argument path
FileUtils.mkdir_p() : mkdir under the path of argument
FileUtils.touch ‘’ : touch a file ‘'
Logger class provides a built in way of logging at different levels automatically
URI open(“http://google.com”).read will show the html content of google homepage
benchmark Benchmarking is the process of measuring how long certain parts of programs take to run. The Benchmark module provides a common starting point for benchmarking your programs
optparse It is common to allow command line programs to accept options, or flags. The OptionParser class provides a common way of parsing command line arguments and displaying help text
observable The Observable module allows you to easily implement the observer pattern in your classes. The observer pattern specifies that an object maintains a list of its dependents, called observers, and notifies them automatically of any state changes













