Class: Cls

Inherits:
Object
  • Object
show all
Includes:
Prepend
Defined in:
lib/muack/test.rb

Defined Under Namespace

Modules: Prepend

Instance Method Summary collapse

Methods included from Prepend

#prepend_aloha, #prepend_bonjour, #prepend_ciao

Instance Method Details

#aloha(a = 0, b = 1) ⇒ Object



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

def aloha a=0, b=1
  [a, b]
end

#bonjour(a: 0, b: 1) ⇒ Object



15
16
17
# File 'lib/muack/test.rb', line 15

def bonjour a: 0, b: 1
  [a, b]
end

#ciao(h = {a: 0, b: 1}) ⇒ Object



18
19
20
# File 'lib/muack/test.rb', line 18

def ciao h={a: 0, b: 1}
  h.values_at(:a, :b)
end

#inspectObject



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

def inspect
  'obj'
end