spec/support/models/variables_holder/dummy.rb in danica-2.6.0 vs spec/support/models/variables_holder/dummy.rb in danica-2.6.1

- old
+ new

@@ -6,14 +6,10 @@ 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 @@ -27,8 +23,19 @@ variables :k, z: { name: 'zeta' } end class DummyAlias < Dummy variable_alias :x, :a + end + end +end + +module Danica + module VariablesHolder + class DummyString + include Common + include VariablesHolder + + variables 'x', 'y' => { latex: '\y' }, 'z' => 10 end end end