class Jazzy::SymbolGraph::ExtConstraints

For extensions we need to track constraints of the extended type and the constraints introduced by the extension.

Attributes

ext[RW]
type[RW]

Public Class Methods

new(type_constraints, ext_constraints) click to toggle source
# File lib/jazzy/symbol_graph/ext_node.rb, line 18
def initialize(type_constraints, ext_constraints)
  self.type = type_constraints || []
  self.ext = ext_constraints || []
end

Public Instance Methods

merged() click to toggle source

all constraints inherited by members of the extension

# File lib/jazzy/symbol_graph/ext_node.rb, line 14
def merged
  (type + ext).sort
end