UNPKG

725 BMarkdownView Raw
1# Examples
2
3```js
4/**
5 * Find Records by a specific field name and value. This method
6 * will be available for each `field` defined on the record.
7 *
8 * title - the title of the article
9 * options - (Object) a list of available options
10 *
11 * Example:
12 * let a = new Article("New post")
13 *
14 * Signature:
15 * new Article(title)
16 */
17
18function getter (proto, prop, fn) {
19 Object.defineProperty(proto, prop, { get: fn });
20}
21
22/*
23 * (Class) an extractor.
24 */
25
26function Extractor () {
27}
28```
29
30```rb
31# Private: computes for a value.
32def sum(&blk)
33```
34
35```css
36/*
37 * Profile picture:
38 * A user's primary photograph.
39 *
40 * @example
41 * .profile-picture
42 * img(src='https://placehold.it/300x300')
43 */
44
45.profile-picture {
46}
47```
48