Class: HolaPouet

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

Overview

Class description goes here

A second line of description

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHolaPouet

some ‘text and stuff` in this comment



12
13
14
# File 'lib/hola_pouet.rb', line 12

def initialize
  @hey = 'hey'
end

Instance Attribute Details

#heyObject

some comment on attr_accessor



7
8
9
# File 'lib/hola_pouet.rb', line 7

def hey
  @hey
end

#hohObject

another comment on another attr_accessor



9
10
11
# File 'lib/hola_pouet.rb', line 9

def hoh
  @hoh
end

Class Method Details

.hiObject

The basic method. Testing this tagging.



17
18
19
# File 'lib/hola_pouet.rb', line 17

def self.hi
  puts 'Hello world from Hola (version 4+)'
end

.hi_advanced(some_parameter, **opts) ⇒ Object

Parameters:

  • some_parameter (String)

    blablabla

  • some_parameter: (String)

    blablabla

  • opts (Integer)

    example: a number

  • opts (Date)

    some_date: a date



25
26
27
28
# File 'lib/hola_pouet.rb', line 25

def self.hi_advanced(some_parameter, **opts)
  puts 'Hello world from Hola (version 4+). Paramters is ' + some_parameter +
       ' with options ' + opts.to_s
end