Exception: Steep::Interface::Builder::RecursiveDefinitionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/steep/interface/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type_name) ⇒ RecursiveDefinitionError

Returns a new instance of RecursiveDefinitionError.



7
8
9
10
# File 'lib/steep/interface/builder.rb', line 7

def initialize(type_name)
  @chain = [type_name].compact
  super "Recursive inheritance/mixin"
end

Instance Attribute Details

#chainObject (readonly)

Returns the value of attribute chain.



5
6
7
# File 'lib/steep/interface/builder.rb', line 5

def chain
  @chain
end

Instance Method Details

#to_sObject



12
13
14
# File 'lib/steep/interface/builder.rb', line 12

def to_s
  super + " #{chain.join(" ~> ")}"
end