Sha256: 91d4dc49d43d9b661a68cdaccff80e563d8653cfc5b9811fcf3a256cdec993b9
Contents?: true
Size: 798 Bytes
Versions: 4
Compression:
Stored size: 798 Bytes
Contents
module Yoda module Model module Descriptions class VariableDescription < Base # @return [Symbol] attr_reader :variable # @return [TypeExpressions::Base] attr_reader :type # @param variable [Symbol] # @param type [TypeExpressions::Base] def initialize(variable:, type:) @variable = variable @type = type end # @return [String] def title "#{variable}: #{type}" end # @return [String] def sort_text variable.to_s end def to_markdown "" end def markup_content { language: 'ruby', value: "#{variable} # #{type}", } end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems