jamesdabbs/pi-base

View on GitHub
app/decorators/theorem_decorator.rb

Summary

Maintainability
A
0 mins
Test Coverage
class TheoremDecorator < Draper::Decorator
  delegate_all

  def linked_name
    [antecedent, consequent].map do |formula|
      formula.to_s { |atom| AtomDecorator.new(atom).linked_name }
    end.join ' ⇒ '
  end
end