Class: Example

Inherits:
Object
  • Object
show all
Defined in:
lib/example.rb

Overview

Example class. It’s sole purpose is to demonstrate how to build a RubyGem.

Instance Method Summary collapse

Instance Method Details

#hiObject

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