Sha256: 5e8d70706c5eb8de93013698ce3677cd27445a4e1d25ccf4f2af24d976676f78

Contents?: true

Size: 341 Bytes

Versions: 23

Compression:

Stored size: 341 Bytes

Contents

byebug
class VariablesExample
  SOMECONST = 'foo' unless defined?(SOMECONST)

  def initialize
    $glob = 100
    @inst_a = 1
    @inst_b = 2
    @inst_c = "1" * 40
    @inst_d = BasicObject.new
    @@class_c = 3
  end

  def run
    a = 4
    b = [1, 2, 3].map do |i|
      a * i
    end
    b
  end

end

v = VariablesExample.new
v.run
v

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
byebug-2.1.1 test/examples/variables.rb
byebug-2.1.0 test/examples/variables.rb
byebug-2.0.0 test/examples/variables.rb
byebug-1.8.2 test/examples/variables.rb
byebug-1.8.1 test/examples/variables.rb
byebug-1.8.0 test/examples/variables.rb
byebug-1.7.0 test/examples/variables.rb
byebug-1.6.1 test/examples/variables.rb
byebug-1.6.0 test/examples/variables.rb
byebug-1.5.0 test/examples/variables.rb
byebug-1.4.2 test/examples/variables.rb
byebug-1.4.1 test/examples/variables.rb
byebug-1.4.0 test/examples/variables.rb
byebug-1.3.1 test/examples/variables.rb
byebug-1.3.0 test/examples/variables.rb
byebug-1.2.0 test/examples/variables.rb
byebug-1.1.1 test/examples/variables.rb
byebug-1.1.0 test/examples/variables.rb
byebug-1.0.3 test/examples/variables.rb
byebug-1.0.2 test/examples/variables.rb