Sha256: 54f49915720d96a949333e619e309bff21df02001bbcc93eca989a644e971ed5

Contents?: true

Size: 115 Bytes

Versions: 5

Compression:

Stored size: 115 Bytes

Contents

require 'prototype'

singleton = Prototype.new{
  @a, @b = 40, 2

  def answer() @a + @b end
}

p singleton.answer

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
prototype-0.0.0 samples/a.rb
prototype-0.1.0 samples/a.rb
prototype-1.0.0 samples/a.rb
prototype-0.2.0 samples/a.rb
prototype-0.3.0 samples/a.rb