Sha256: 45d7517cf27dc6c1c02e23f71f6debb8f4a5be6e75530566cc7e17df8287cb1e

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

---
"$id": https://raw.githubusercontent.com/tcd/ginny/master/schema/func.schema.json
"$schema": http://json-schema.org/draft-07/schema#
title: Ginny Func Definition
description: Used to generate a [method](https://ruby-doc.org/core-2.6.5/doc/syntax/methods_rdoc.html).
type: object
required: [name]
properties:
  body:
    description: String to write into the body of the function.
    type: string
  description:
    description: Description of the function. [Markdown](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) is supported.
    type: string
  modules:
    description: List of modules to declare the function inside of.
    type: array
    items:
      type: string
  name:
    description: Name of the function.
    type: string
  params:
    description: An array of `Ginny::Param`s.
    type: array
    items:
      "$ref": https://raw.githubusercontent.com/tcd/ginny/master/schema/param.schema.json
  return_type:
    description: Return [type](https://rubydoc.info/gems/yard/file/docs/GettingStarted.md#Declaring_Types) of the function.
    type: string

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ginny-0.6.3 schema/func.schema.yml
ginny-0.6.2 schema/func.schema.yml