Sha256: fded2c755a70e95a98c69e9b556b92005805d57e5686569decbe8f3f337cce3f

Contents?: true

Size: 594 Bytes

Versions: 3

Compression:

Stored size: 594 Bytes

Contents

module Danica
  module VariablesHolder
    class Dummy
      include Common
      include VariablesHolder

      variables :x, y: { latex: '\y' }, z: 10

      delegate :to, :to_f, to: :block

      def initialize(vars = {})
        self.variables=vars
      end

      def block
        x ** y + z
      end
    end

    class DummyChild < Dummy
      variables :k, z: { name: 'zeta' }
    end

    class DummyOverwrite < Dummy
      variables :w
      reset_variables
      variables :k, z: { name: 'zeta' }
    end

    class DummyAlias < Dummy
      variable_alias :x, :a
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
danica-2.6.0 spec/support/models/variables_holder/dummy.rb
danica-2.5.1 spec/support/models/variables_holder/dummy.rb
danica-2.5.0 spec/support/models/variables_holder/dummy.rb