Sha256: 0ad8e11158afba1700fa5175f5ed7e8f74ea36df961ca68238784936e76eafd1

Contents?: true

Size: 247 Bytes

Versions: 3

Compression:

Stored size: 247 Bytes

Contents

# frozen_string_literal: true

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

3 entries across 3 versions & 1 rubygems

Version Path
danica-2.7.7 spec/support/models/expression/parabole.rb
danica-2.7.6 spec/support/models/expression/parabole.rb
danica-2.7.5 spec/support/models/expression/parabole.rb