Sha256: bb5295283c5c8dd4e6293fcfdad3a78f4adf941616b0f6db4095c94eed7e0de9

Contents?: true

Size: 453 Bytes

Versions: 7

Compression:

Stored size: 453 Bytes

Contents

module SomeOtherModule
  def howdy
    puts 'stuff'
  end
end

example = Class.new do
  def basic_class
    Class.new(BasicObject) do
      def foo
        :bar
      end
    end
  end

  def inherited
    Class.new(basic_class) do
      # include ::Kernel
      include SomeOtherModule
    end
  end

  def run
    instance = inherited.new
    # This will fail in Opal <= 0.9 with undefined method `howdy'
    instance.howdy
  end
end

example.new.run

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
opal-rspec-0.6.2 spec/rspec/support/filter/bugs/sandbox/basic_object.rb
opal-rspec-0.6.1 spec/rspec/support/filter/bugs/sandbox/basic_object.rb
opal-rspec-0.6.0 spec/rspec/support/filter/bugs/sandbox/basic_object.rb
opal-rspec-0.6.0.beta1 spec/rspec/support/filter/bugs/sandbox/basic_object.rb
opal-connect-rspec-0.5.0 spec/rspec/support/filter/bugs/sandbox/basic_object.rb
opal-rspec-0.5.0 spec/rspec/support/filter/bugs/sandbox/basic_object.rb
opal-rspec-0.5.0.beta3 spec/rspec/support/filter/bugs/sandbox/basic_object.rb