Class: Useful::Main

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMain

Creates a new instance of the “Useful::Main” class



6
7
8
# File 'lib/useful/main.rb', line 6

def initialize
    # nothing to do
end

Class Method Details

.helloObject

Tests if gem is working by printing “Hello, usefulgem here.” to the screen

Example:

>> useful = Useful::Main.new
>> useful.hello  
=> Hello, usefulgem here.


21
22
23
# File 'lib/useful/main.rb', line 21

def self.hello
   puts "Hello, usefulgem here." 
end