My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

What does the line "Dojo::Kata::Roulette:ScopeIn.new.push - #{Dojo::Kata::Roulette::ScopeIn.new.push} means here??

Manish pamnani's photo
Manish pamnani
·Jun 22, 2017
module Dojo
  A = 4
  module Kata
      B = 8
    module Roulette
      class ScopeIn
        def push
          15
        end
      end
    end
  end
end

A = 16
B = 23
C = 42

puts "A - #{A}"
puts "Dojo::A - #{Dojo::A}"

puts

puts "B - #{B}"
puts "Dojo::Kata::B - #{Dojo::Kata::B}"

puts

puts "C - #{C}"
puts "Dojo::Kata::Roulette::ScopeIn.new.push - #{Dojo::Kata::Roulette::ScopeIn.new.push}"

STDOUT:

A - 16
Dojo::A - 4

B - 23
Dojo::Kata::B - 8

C - 42
Dojo::Kata::Roulette::ScopeIn.new.push - 15