Exception: RBI::UnexpectedMultipleSigsError

Inherits:
Error
  • Object
show all
Defined in:
lib/rbi/rewriters/attr_to_methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ UnexpectedMultipleSigsError

Returns a new instance of UnexpectedMultipleSigsError.



10
11
12
13
14
15
16
17
18
# File 'lib/rbi/rewriters/attr_to_methods.rb', line 10

def initialize(node)
  super(<<~MSG)
    This declaration cannot have more than one sig.

    #{node.string.chomp}
  MSG

  @node = node
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



7
8
9
# File 'lib/rbi/rewriters/attr_to_methods.rb', line 7

def node
  @node
end