File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66require_relative "decode/version"
77require_relative "decode/index"
8+
9+ # @namespace
10+ module Decode
11+ end
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ # Released under the MIT License.
4+ # Copyright, 2020, by Samuel Williams.
5+
6+ require_relative 'parameter'
7+
8+ module Decode
9+ module Comment
10+ # Describes a method option (keyword argument).
11+ #
12+ # - `@option :cached [Boolean] Whether to cache the value.`
13+ #
14+ class Option < Parameter
15+ end
16+ end
17+ end
Original file line number Diff line number Diff line change 88require_relative 'comment/tags'
99require_relative 'comment/attribute'
1010require_relative 'comment/parameter'
11+ require_relative 'comment/option'
1112require_relative 'comment/pragma'
1213require_relative 'comment/raises'
1314require_relative 'comment/returns'
Original file line number Diff line number Diff line change 88
99module Decode
1010 module Language
11- # The Ruby language.
1211 class Generic
1312 EXTENSIONS = [ ]
1413
1514 TAGS = Comment ::Tags . build do |tags |
1615 tags [ 'attribute' ] = Comment ::Attribute
1716 tags [ 'parameter' ] = Comment ::Parameter
17+ tags [ 'option' ] = Comment ::Option
1818 tags [ 'yields' ] = Comment ::Yields
1919 tags [ 'returns' ] = Comment ::Returns
2020 tags [ 'raises' ] = Comment ::Raises
You can’t perform that action at this time.
0 commit comments