sai 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/README.md +25 -4
- data/docs/USAGE.md +9 -16
- data/lib/sai/ansi.rb +40 -0
- data/lib/sai/conversion/rgb/color_space.rb +2 -2
- data/lib/sai/decorator/delegator.rb +79 -0
- data/lib/sai/decorator/named_colors.rb +38 -744
- data/lib/sai/decorator.rb +2 -3
- data/lib/sai/registry.rb +134 -0
- data/lib/sai.rb +28 -765
- data/sig/sai/ansi.rbs +21 -0
- data/sig/sai/decorator/delegator.rbs +95 -0
- data/sig/sai/decorator/named_colors.rbs +30 -1460
- data/sig/sai/decorator.rbs +2 -3
- data/sig/sai/{named_colors.rbs → registry.rbs} +31 -52
- data/sig/sai.rbs +14 -1519
- metadata +8 -8
- data/lib/sai/decorator/delegation.rb +0 -85
- data/lib/sai/named_colors.rb +0 -522
- data/sig/sai/decorator/delegation.rbs +0 -47
@@ -1,47 +0,0 @@
|
|
1
|
-
# Generated from lib/sai/decorator/delegation.rb with RBS::Inline
|
2
|
-
|
3
|
-
module Sai
|
4
|
-
class Decorator
|
5
|
-
# Delegates all methods from the Decorator class and its component modules
|
6
|
-
#
|
7
|
-
# @author {https://aaronmallen.me Aaron Allen}
|
8
|
-
# @since 0.3.1
|
9
|
-
#
|
10
|
-
# @api private
|
11
|
-
module Delegation
|
12
|
-
# The list of component modules to delegate methods from
|
13
|
-
#
|
14
|
-
# @author {https://aaronmallen.me Aaron Allen}
|
15
|
-
# @since 0.3.1
|
16
|
-
#
|
17
|
-
# @api private
|
18
|
-
#
|
19
|
-
# @return [Array<Symbol>] the list of component modules
|
20
|
-
COMPONENT_MODULES: Array[Symbol]
|
21
|
-
|
22
|
-
# Install delegated methods on the given class or module
|
23
|
-
#
|
24
|
-
# @author {https://aaronmallen.me Aaron Allen}
|
25
|
-
# @since 0.3.1
|
26
|
-
#
|
27
|
-
# @api private
|
28
|
-
#
|
29
|
-
# @param klass [Class, Module] the class or module to install the methods on
|
30
|
-
#
|
31
|
-
# @return [void]
|
32
|
-
# @rbs (Class | Module) -> void
|
33
|
-
def self.install: (Class | Module) -> void
|
34
|
-
|
35
|
-
# Collect all methods from the Decorator class and its component modules
|
36
|
-
#
|
37
|
-
# @author {https://aaronmallen.me Aaron Allen}
|
38
|
-
# @since 0.3.1
|
39
|
-
#
|
40
|
-
# @api private
|
41
|
-
#
|
42
|
-
# @return [Array<Symbol>] the list of methods to delegate
|
43
|
-
# @rbs () -> Array[Symbol]
|
44
|
-
private def self.collect_delegatable_methods: () -> Array[Symbol]
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|