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