Sha256: 013815919cfa249f9c4df20db89688b86cdb1db1194c012ab4cbd13879521d7d

Contents?: true

Size: 879 Bytes

Versions: 2

Compression:

Stored size: 879 Bytes

Contents

module PureRubyModule

end

module RubyModuleIncludingModule
  include PureRubyModule
end

class SubclassingRubyClass < Soldier

end

class ModuleIncludingClass
  include RubyModuleIncludingModule
end

if defined? IRONRUBY_VERSION

  module Caricature

    module InterfaceIncludingModule
      include ClrModels::IWarrior
    end


    module InterfaceUpTheWazoo
      include InterfaceIncludingModule
    end

    class InterfaceIncludingClass
      include ClrModels::IWarrior
      
      attr_reader :id
      attr_accessor :name
      
      def is_killed_by(weapon)
        
      end
      
      def attack(target, weapon)
        
      end
      
      def survive_attack_with(weapon)
        
      end
      
    end

    class SubClassingClrClass < ClrModels::Ninja

    end

    class InterfaceUpTheWazooClass
      include InterfaceUpTheWazoo
    end


  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
caricature-0.7.7 spec/fixtures/clr_interaction.rb
caricature-0.7.6 spec/fixtures/clr_interaction.rb