Sha256: 54ed200a226bfafca7dba0a3b95a12e5b40780a2bdd7ddabc8ee8faee90f229d

Contents?: true

Size: 649 Bytes

Versions: 49

Compression:

Stored size: 649 Bytes

Contents

CS_GLOBAL = "global"
CS_NIL = nil
CS_ZERO = 0
CS_BLANK = ""
CS_FALSE = false

module ConstantSpecs

  # Included in ModuleD
  module ModuleM
    CS_CONST10 = :const10_11
    CS_CONST24 = :const24
  end

  class ClassA
    CS_CONST10 = :const10_10
    CS_CONST16 = :const16
    CS_CONST17 = :const17_2
    CS_CONST22 = :const22_1

    def self.const_missing(const)
      const
    end

    def self.constx;  CS_CONSTX;       end
    def self.const10; CS_CONST10;      end
    def self.const16; ParentA.const16; end
    def self.const22; ParentA.const22 { CS_CONST22 }; end

    def const10; CS_CONST10; end
    def constx;  CS_CONSTX;  end
  end
end

Version data entries

49 entries across 49 versions & 3 rubygems

Version Path
opal-0.10.6 spec/opal/core/fixtures/constants.rb
opal-0.10.6.beta spec/opal/core/fixtures/constants.rb
opal-0.10.5 spec/opal/core/fixtures/constants.rb
opal-0.10.4 spec/opal/core/fixtures/constants.rb
opal-0.11.0.rc1 spec/opal/core/fixtures/constants.rb
opal-0.10.3 spec/opal/core/fixtures/constants.rb
opal-0.10.2 spec/opal/core/fixtures/constants.rb
opal-0.10.1 spec/opal/core/fixtures/constants.rb
opal-0.10.0 spec/opal/core/fixtures/constants.rb
opal-0.10.0.rc2 spec/opal/core/fixtures/constants.rb
opal-0.9.4 spec/opal/core/fixtures/constants.rb
opal-0.9.3 spec/opal/core/fixtures/constants.rb
opal-0.10.0.rc1 spec/opal/core/fixtures/constants.rb
opal-0.10.0.beta5 spec/opal/core/fixtures/constants.rb
opal-0.10.0.beta4 spec/opal/core/fixtures/constants.rb
opal-0.10.0.beta3 spec/opal/core/fixtures/constants.rb
opal-0.10.0.beta2 spec/opal/core/fixtures/constants.rb
opal-0.10.0.beta1 spec/opal/core/fixtures/constants.rb
opal-0.9.2 spec/opal/core/fixtures/constants.rb
opal-0.9.0 spec/opal/core/fixtures/constants.rb