Class: Useful::Main
- Inherits:
-
Object
- Object
- Useful::Main
- Defined in:
- lib/useful/main.rb
Class Method Summary collapse
-
.hello ⇒ Object
Tests if gem is working by printing “Hello, usefulgem here.” to the screen.
Instance Method Summary collapse
-
#initialize ⇒ Main
constructor
Creates a new instance of the “Useful::Main” class.
Constructor Details
#initialize ⇒ Main
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
.hello ⇒ Object
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 |