Module: Show

Included in:
Point
Defined in:
lib/point.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.add(p1, p2) ⇒ Object



20
21
22
# File 'lib/point.rb', line 20

def self.add(p1, p2)
    p1 + p2
end

Instance Method Details

#show(something = 'world') ⇒ Object



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

def show(something='world')
    p "We are showing #{something} from module Show"
end

#timeObject



16
17
18
# File 'lib/point.rb', line 16

def time
    p Time.now
end