Class: Rucoa::Yard::Type
- Inherits:
-
Object
- Object
- Rucoa::Yard::Type
- Defined in:
- lib/rucoa/yard/type.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ Type
constructor
A new instance of Type.
- #to_rucoa_type ⇒ String
Constructor Details
#initialize(value) ⇒ Type
Returns a new instance of Type.
7 8 9 |
# File 'lib/rucoa/yard/type.rb', line 7 def initialize(value) @value = value end |
Instance Method Details
#to_rucoa_type ⇒ String
37 38 39 40 41 42 43 |
# File 'lib/rucoa/yard/type.rb', line 37 def to_rucoa_type @value .delete_prefix('::') .gsub(/<.+>/, '') .gsub(/\{.+\}/, '') .gsub(/\(.+\)/, '') end |