Skip to content

Instantly share code, notes, and snippets.

View at-longhoang's full-sized avatar

Long Hoang P.V. at-longhoang

  • Asian Tech Co., Ltd.
  • Da nang
View GitHub Profile
module Kata
A = 5
module Dojo
B = 9
A = 7
class ScopeIn
def push
A
end
proc = Proc.new { |x| x + 1 }
puts proc.call(2)
result = lambda { |x| x + 1 }
puts result.call(2)
proc = Proc.new { |x| x + 1 }
puts proc.call(2,3)
proc = Proc.new { |x| x + 1 }
puts proc.call(2)
result = lambda { |x| x + 1 }
puts result.call(2)
proc = Proc.new { |x| x + 1 }
puts proc.call(2,3)