lib/ginny/models/attr.rb in ginny-0.5.0 vs lib/ginny/models/attr.rb in ginny-0.5.2

- old
+ new

@@ -44,9 +44,11 @@ # @return [Array<Ginny::Attr>] def self.from_array(array) return array.map { |f| self.create(f) } end + # Return generated code as a string. + # # @return [String] def render() parts = [] parts << (@description&.length&.positive? ? @description.comment : nil) parts << "@return [#{self.type}]".comment