icing 0.0.1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: eacf43765c36361cf4a0ca4f5c346b5162affeb2
4
+ data.tar.gz: 959ad90c9b8629d71dca85a0704791f84a606e2e
5
+ SHA512:
6
+ metadata.gz: f7722916b78ac22cf02536d19bc61d25ea8037cfc5be62826ac4072979ff40dfab461de11865f89b303422e00ec3aec6377ed6fb93ca633765b18149febd6789
7
+ data.tar.gz: 19a5186ee3ce50688265e1e296eab1007768d3693adf4687b1064f5c11e1269e686f68e8825ee5f5c9b130b4d4bb77cf50015d6ee6f330c890a980ab97e5a467
@@ -0,0 +1,50 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ ## Specific to RubyMotion:
17
+ .dat*
18
+ .repl_history
19
+ build/
20
+ *.bridgesupport
21
+ build-iPhoneOS/
22
+ build-iPhoneSimulator/
23
+
24
+ ## Specific to RubyMotion (use of CocoaPods):
25
+ #
26
+ # We recommend against adding the Pods directory to your .gitignore. However
27
+ # you should judge for yourself, the pros and cons are mentioned at:
28
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
29
+ #
30
+ # vendor/Pods/
31
+
32
+ ## Documentation cache and generated files:
33
+ /.yardoc/
34
+ /_yardoc/
35
+ /doc/
36
+ /rdoc/
37
+
38
+ ## Environment normalization:
39
+ /.bundle/
40
+ /vendor/bundle
41
+ /lib/bundler/man/
42
+
43
+ # for a library or gem, you might want to ignore these files since the code is
44
+ # intended to run in multiple environments; otherwise, check them in:
45
+ Gemfile.lock
46
+ .ruby-version
47
+ .ruby-gemset
48
+
49
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
50
+ .rvmrc
@@ -0,0 +1,9 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.0
5
+ - 2.1
6
+ - 2.2
7
+ - 2.3.0
8
+ - 2.4.0
9
+ before_install: gem install bundler -v 1.15.3
@@ -0,0 +1,14 @@
1
+ # Icing Changelog
2
+
3
+ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning][Semver].
4
+
5
+ ## [Unreleased]
6
+
7
+ * Your contribution here!
8
+
9
+ ## 0.0.1 (2017-07-30)
10
+
11
+ * Initial release
12
+
13
+ [Semver]: http://semver.org
14
+ [Unreleased]: https://github.com/eugeniobruno/icing/compare/v0.0.1...HEAD
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at eugeniobruno@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in icing.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Eugenio Bruno
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,86 @@
1
+ # Icing
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/icing.svg)](https://badge.fury.io/rb/icing)
4
+ [![Build Status](https://travis-ci.org/eugeniobruno/icing.svg?branch=master)](https://travis-ci.org/eugeniobruno/icing)
5
+ [![Coverage Status](https://coveralls.io/repos/github/eugeniobruno/icing/badge.svg?branch=master)](https://coveralls.io/github/eugeniobruno/icing?branch=master)
6
+ [![Code Climate](https://codeclimate.com/github/eugeniobruno/icing.svg)](https://codeclimate.com/github/eugeniobruno/icing)
7
+ [![Dependency Status](https://gemnasium.com/eugeniobruno/icing.svg)](https://gemnasium.com/eugeniobruno/icing)
8
+
9
+ Icing is a framework to reify and work with composable decorations.
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ ```ruby
16
+ gem 'icing'
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install icing
26
+
27
+ ## Usage
28
+
29
+ Here is a simple example:
30
+
31
+ ```ruby
32
+ class WithPrefix < Icing::Decorations::Base
33
+
34
+ def decorated(object, method_name, *args, &block)
35
+ "Ruby says: #{super}"
36
+ end
37
+
38
+ end
39
+
40
+ class WithExclam < Icing::Decorations::Base
41
+
42
+ def decorated(object, method_name, *args, &block)
43
+ super + '!'
44
+ end
45
+
46
+ end
47
+
48
+ class Greeter
49
+
50
+ def say_hello(name)
51
+ "Hello, #{name}"
52
+ end
53
+
54
+ def say_welcome(name)
55
+ "Welcome, #{name}"
56
+ end
57
+
58
+ end
59
+
60
+ decorated_greeter = Icing.decorator(Greeter.new, {
61
+ say_hello: [WithExclam.new, WithPrefix.new],
62
+ say_welcome: WithExclam.new
63
+ })
64
+
65
+ decorated_greeter.say_hello("Foo") # "Ruby says: Hello, Foo!"
66
+ decorated_greeter.say_welcome("Bar") # "Welcome, Bar!"
67
+ ```
68
+
69
+ More examples can be found in the test files.
70
+
71
+
72
+ ## Development
73
+
74
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
75
+
76
+ To install this gem onto your local machine, run `bundle exec rake install`.
77
+
78
+ ## Contributing
79
+
80
+ Bug reports and pull requests are welcome on GitHub at https://github.com/eugeniobruno/icing. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
81
+
82
+
83
+ ## License
84
+
85
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
86
+
@@ -0,0 +1,17 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << 'test'
6
+ t.test_files = FileList['test/**/test_*.rb']
7
+ end
8
+
9
+ task default: :test
10
+
11
+ desc 'Start a REPL session'
12
+ task :console do
13
+ require 'icing'
14
+ require 'pry'
15
+ ARGV.clear
16
+ Pry.start
17
+ end
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'icing'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,36 @@
1
+ # coding: utf-8
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'icing/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'icing'
9
+ spec.version = Icing::VERSION
10
+ spec.date = '2017-07-30'
11
+ spec.authors = ['Eugenio Bruno']
12
+ spec.email = ['eugeniobruno@gmail.com']
13
+
14
+ spec.summary = 'Icing is a framework to reify and work with composable decorations.'
15
+ spec.homepage = 'https://github.com/eugeniobruno/icing'
16
+ spec.license = 'MIT'
17
+
18
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
+ f.match(%r{^(test|spec|features)/})
20
+ end
21
+ spec.bindir = 'bin'
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
24
+ spec.require_paths = ['lib']
25
+ spec.extra_rdoc_files = %w[LICENSE.txt README.md CODE_OF_CONDUCT.md CHANGELOG.md]
26
+
27
+ spec.required_ruby_version = '>= 2.0.0'
28
+
29
+ spec.add_development_dependency 'bundler', '~> 1.15'
30
+ spec.add_development_dependency 'rake', '~> 10.0'
31
+ spec.add_development_dependency 'minitest', '~> 5.0'
32
+ spec.add_development_dependency 'minitest-bender', '~> 0.0'
33
+ spec.add_development_dependency 'simplecov', '~> 0.14'
34
+ spec.add_development_dependency 'coveralls', '~> 0.8'
35
+ spec.add_development_dependency 'pry-byebug', '~> 3.4'
36
+ end
@@ -0,0 +1,19 @@
1
+ require 'icing/version'
2
+
3
+ require 'icing/decorations/base'
4
+ require 'icing/decorations/composite'
5
+ require 'icing/decoration_factory'
6
+ require 'icing/decorator_factory'
7
+ require 'icing/decorator'
8
+
9
+ module Icing
10
+ def self.decoration_factory
11
+ @decoration_factory ||= DecorationFactory.new
12
+ end
13
+
14
+ def self.decorator(undecorated_object, definition)
15
+ @decorator_factory ||= DecoratorFactory.new
16
+
17
+ @decorator_factory.create(undecorated_object, definition)
18
+ end
19
+ end
@@ -0,0 +1,7 @@
1
+ module Icing
2
+ class DecorationFactory
3
+ def composite(decorations)
4
+ Decorations::Composite.new(decorations.flat_map(&:to_a))
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,43 @@
1
+ module Icing
2
+ module Decorations
3
+ class Base
4
+ def decorated(object, method_name, *args, &block)
5
+ object.public_send(method_name, *args, &block)
6
+ end
7
+
8
+ def wrapping(other)
9
+ other.within(self)
10
+ end
11
+
12
+ def within(other)
13
+ other.wrapping_other(self)
14
+ end
15
+
16
+ def wrapping_other(other)
17
+ decoration_factory.composite([other.to_a, self].flatten(1))
18
+ end
19
+
20
+ def to_a
21
+ [self]
22
+ end
23
+
24
+ def method_missing(name, *args, &block)
25
+ if name.to_s.start_with?('wrapping_')
26
+ wrapping_other(*args)
27
+ else
28
+ super
29
+ end
30
+ end
31
+
32
+ def respond_to_missing?(method_name, include_private = false)
33
+ method_name.to_s.start_with?('wrapping_') || super
34
+ end
35
+
36
+ private
37
+
38
+ def decoration_factory
39
+ Icing.decoration_factory
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,23 @@
1
+ module Icing
2
+ module Decorations
3
+ class Composite < Base
4
+ attr_reader :decorations
5
+
6
+ def initialize(decorations)
7
+ @decorations = decorations
8
+ end
9
+
10
+ def within(other)
11
+ other.wrapping_composite(self)
12
+ end
13
+
14
+ def wrapping_composite(composite)
15
+ self.class.new(composite.to_a + decorations)
16
+ end
17
+
18
+ def to_a
19
+ decorations
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,25 @@
1
+ module Icing
2
+ class Decorator < SimpleDelegator
3
+ attr_reader :definition
4
+
5
+ def initialize(undecorated_object, definition)
6
+ super(undecorated_object)
7
+ @definition = definition
8
+ define_decorated_methods
9
+ end
10
+
11
+ def undecorated_object
12
+ __getobj__
13
+ end
14
+
15
+ private
16
+
17
+ def define_decorated_methods
18
+ definition.each do |method_name, decoration|
19
+ define_singleton_method method_name do |*args, &block|
20
+ decoration.decorated(undecorated_object, method_name, *args, &block)
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,31 @@
1
+ module Icing
2
+ class DecoratorFactory
3
+ def create(undecorated_object, definition)
4
+ return undecorated_object if definition.empty?
5
+
6
+ nested_decorators(undecorated_object, layers(definition))
7
+ end
8
+
9
+ private
10
+
11
+ def layers(definition)
12
+ ret = []
13
+ definition.each do |method_name, decorations|
14
+ decorations_array = decorations.to_a.flat_map(&:to_a) # no composites
15
+ decorations_array.each_with_index do |decoration, i|
16
+ ret[i] = (ret[i] || {}).merge(method_name => decoration)
17
+ end
18
+ end
19
+
20
+ ret
21
+ end
22
+
23
+ def nested_decorators(object, layers)
24
+ outer_decorator = Decorator.new(object, layers.first)
25
+
26
+ layers.drop(1).reduce(outer_decorator) do |undecorated_object, definition|
27
+ Decorator.new(undecorated_object, definition)
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,3 @@
1
+ module Icing
2
+ VERSION = '0.0.1'.freeze
3
+ end
metadata ADDED
@@ -0,0 +1,164 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: icing
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Eugenio Bruno
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-07-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.15'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest-bender
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.14'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.14'
83
+ - !ruby/object:Gem::Dependency
84
+ name: coveralls
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.8'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.8'
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry-byebug
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '3.4'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '3.4'
111
+ description:
112
+ email:
113
+ - eugeniobruno@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files:
117
+ - LICENSE.txt
118
+ - README.md
119
+ - CODE_OF_CONDUCT.md
120
+ - CHANGELOG.md
121
+ files:
122
+ - ".gitignore"
123
+ - ".travis.yml"
124
+ - CHANGELOG.md
125
+ - CODE_OF_CONDUCT.md
126
+ - Gemfile
127
+ - LICENSE.txt
128
+ - README.md
129
+ - Rakefile
130
+ - bin/console
131
+ - bin/setup
132
+ - icing.gemspec
133
+ - lib/icing.rb
134
+ - lib/icing/decoration_factory.rb
135
+ - lib/icing/decorations/base.rb
136
+ - lib/icing/decorations/composite.rb
137
+ - lib/icing/decorator.rb
138
+ - lib/icing/decorator_factory.rb
139
+ - lib/icing/version.rb
140
+ homepage: https://github.com/eugeniobruno/icing
141
+ licenses:
142
+ - MIT
143
+ metadata: {}
144
+ post_install_message:
145
+ rdoc_options: []
146
+ require_paths:
147
+ - lib
148
+ required_ruby_version: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: 2.0.0
153
+ required_rubygems_version: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - ">="
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ requirements: []
159
+ rubyforge_project:
160
+ rubygems_version: 2.5.1
161
+ signing_key:
162
+ specification_version: 4
163
+ summary: Icing is a framework to reify and work with composable decorations.
164
+ test_files: []