Class: Example
- Inherits:
-
Object
- Object
- Example
- Defined in:
- lib/example.rb
Overview
Example class. It’s sole purpose is to demonstrate how to build a RubyGem.
Instance Method Summary collapse
-
#hi ⇒ Object
Example method.
Instance Method Details
#hi ⇒ Object
Example method. Takes no parameters and returns nil
. Outputs a nice message on the console.
9 10 11 |
# File 'lib/example.rb', line 9 def hi puts Paint["This is an example RubyGem.", :green] end |