Sha256: b75807838d3617fcf4ad4063e9fe6c00194b3115419352df27022324dfa3139d

Contents?: true

Size: 415 Bytes

Versions: 24

Compression:

Stored size: 415 Bytes

Contents

def SugarCube.look_in(where, here, here__deprecated={})
  return here[where] if here.has_key? where
  if here__deprecated[where]
    translated = here__deprecated[where]
    SugarCube.log("The symbol #{where.inspect} has been deprecated in favor of #{translated.inspect}")
    return here[translated]
  end
  raise SugarCubeNotFoundException.new(where.inspect)
end

class SugarCubeNotFoundException < Exception
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
sugarcube-4.0.0 lib/all/sugarcube/look_in.rb
sugarcube-3.5.0 lib/all/sugarcube/look_in.rb
sugarcube-3.4.2 lib/all/sugarcube/look_in.rb
sugarcube-3.4.1 lib/all/sugarcube/look_in.rb
sugarcube-3.4.0 lib/all/sugarcube/look_in.rb
sugarcube-3.3.7 lib/all/sugarcube/look_in.rb
sugarcube-3.3.6 lib/all/sugarcube/look_in.rb
sugarcube-3.3.5 lib/all/sugarcube/look_in.rb
sugarcube-3.3.4 lib/all/sugarcube/look_in.rb
sugarcube-3.3.3 lib/all/sugarcube/look_in.rb
sugarcube-3.3.2 lib/all/sugarcube/look_in.rb
sugarcube-3.3.1 lib/all/sugarcube/look_in.rb
sugarcube-3.3.0 lib/all/sugarcube/look_in.rb
sugarcube-3.2.0 lib/all/sugarcube/look_in.rb
sugarcube-3.1.1 lib/all/sugarcube/look_in.rb
sugarcube-3.1.0 lib/all/sugarcube/look_in.rb
sugarcube-3.0.8 lib/all/sugarcube/look_in.rb
sugarcube-3.0.7 lib/all/sugarcube/look_in.rb
sugarcube-3.0.6 lib/all/sugarcube/look_in.rb
sugarcube-3.0.5 lib/all/sugarcube/look_in.rb