Class: YARD::Tags::TypesExplainer
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Inherits: | Object |
Defined in: | lib/yard/tags/types_explainer.rb |
Class Method Summary
-
.explain(*types) ⇒ String?
Provides a plain English summary of the type specification, or nil if no types are provided or parsable.
-
.explain!(*types) ⇒ String?
Provides a plain English summary of the type specification, or nil if no types are provided or parsable.
Class Method Details
.explain(*types) ⇒ String?
Provides a plain English summary of the type specification, or nil if no types are provided or parsable.
# File 'lib/yard/tags/types_explainer.rb', line 9
def self.explain(*types) explain!(*types) rescue SyntaxError nil end
.explain!(*types) ⇒ String?
Provides a plain English summary of the type specification, or nil if no types are provided or parsable.