Class: Steep::Subtyping::Result::Failure::BlockMismatchError
- Defined in:
- lib/steep/subtyping/result.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:) ⇒ BlockMismatchError
constructor
A new instance of BlockMismatchError.
- #message ⇒ Object
Constructor Details
#initialize(name:) ⇒ BlockMismatchError
Returns a new instance of BlockMismatchError.
193 194 195 |
# File 'lib/steep/subtyping/result.rb', line 193 def initialize(name:) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
191 192 193 |
# File 'lib/steep/subtyping/result.rb', line 191 def name @name end |
Instance Method Details
#message ⇒ Object
197 198 199 |
# File 'lib/steep/subtyping/result.rb', line 197 def "Method #{name} is incompatible for block" end |