mini_decorator 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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/mini_decorator.rb +7 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7672cb4e22e5db7b4c32e784d617b0c7a5e67e4b532558455245098016f26c48
4
+ data.tar.gz: d192372df2c78cc36d316012d45341d07c2c43a5055a83f046fd17d024c0852a
5
+ SHA512:
6
+ metadata.gz: 8041092be9c829b06ebce8f851e9b73ecd9b70f64069ff77691ac684ae19edb50b4801cc04e5fa836b73fe55d20359289a1cc344f338e4892e961038f586afb9
7
+ data.tar.gz: 936fc0ee2527aca51d6b9bbb702d02b7abf6752e0d114f12886794fa08b78357f2dddd6ae8411f1e6e8dcc212ab6232d70402ad8d0a6cca2b80c63db2b36a192
@@ -0,0 +1,7 @@
1
+ class MiniDecorator < Module
2
+ def initialize(decorator)
3
+ define_method(:decorate) do |property|
4
+ decorator.public_send(property, self)
5
+ end
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mini_decorator
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Nathan McCallum
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-05-24 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email: hello@nathan-mccallum.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/mini_decorator.rb
20
+ homepage: https://github.com/1vasari/mini_decorator
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubygems_version: 3.1.2
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: Minimal decoration of Ruby objects using a "decorate" method.
43
+ test_files: []