Exception: RBI::UnexpectedMultipleSigsError
- Defined in:
- lib/rbi/rewriters/attr_to_methods.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(node) ⇒ UnexpectedMultipleSigsError
constructor
A new instance of UnexpectedMultipleSigsError.
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
#node ⇒ Object (readonly)
Returns the value of attribute node.
7 8 9 |
# File 'lib/rbi/rewriters/attr_to_methods.rb', line 7 def node @node end |