class Parlour::Types::SingleElementCollection
Attributes
element[R]
Public Class Methods
new(element)
click to toggle source
# File lib/parlour/types.rb, line 242 def initialize(element) @element = to_type(element) end
Public Instance Methods
collection_name()
click to toggle source
# File lib/parlour/types.rb, line 250 def collection_name; end
describe()
click to toggle source
# File lib/parlour/types.rb, line 263 def describe "#{collection_name}<#{element.describe}>" end
generate_rbi()
click to toggle source
# File lib/parlour/types.rb, line 253 def generate_rbi "T::#{collection_name}[#{element.generate_rbi}]" end
generate_rbs()
click to toggle source
# File lib/parlour/types.rb, line 258 def generate_rbs "::#{collection_name}[#{element.generate_rbs}]" end