Sha256: cb397517c0387e96c0fab0666c9aa8e90669d39fe91044907a8a5cf9f8268330

Contents?: true

Size: 216 Bytes

Versions: 6

Compression:

Stored size: 216 Bytes

Contents

module Danica
  class Parabole < Expression.build(:x) { power(x, 2) }
  end
end

module Danica
  class SaddleParabole < Parabole
    variables :y

    def expression_block
      super - power(y, 2)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
danica-2.7.4 spec/support/models/expression/parabole.rb
danica-2.7.3 spec/support/models/expression/parabole.rb
danica-2.7.2 spec/support/models/expression/parabole.rb
danica-2.7.1 spec/support/models/expression/parabole.rb
danica-2.6.4 spec/support/models/expression/parabole.rb
danica-2.6.3 spec/support/models/expression/parabole.rb