to_proc 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 74a2796be10cd99610c7a8cdf6766200628887a7
4
+ data.tar.gz: f5ae4f3150d07e2cdd67a898676e3a107f708e83
5
+ SHA512:
6
+ metadata.gz: 70c849929c81380d835ed046ada18f25bd14b4d47321ae628c80340fffa9437e2eadf6d0126aeadef41cb72972da5b213127659f8f67d568fbc6029b79f0d6d1
7
+ data.tar.gz: e73a5aa3ef5e455430daaf320a40aaf7202a081d8c04b4a8c5558625b13066095dae6d8ee2757a6d00c982fc7c096f589c9618973e70e02ce6a3acfdea7879e5
@@ -0,0 +1,4 @@
1
+ require 'to_proc'
2
+
3
+ Object.include ToProc[:[]]
4
+ Class.include ToProc[:new]
data/lib/to_proc.rb ADDED
@@ -0,0 +1,7 @@
1
+ ToProc = -> name do
2
+ Module.new do
3
+ define_method :to_proc do
4
+ method(name).to_proc
5
+ end
6
+ end
7
+ end
data/to_proc.gemspec ADDED
@@ -0,0 +1,7 @@
1
+ Gem::Specification.new do |g|
2
+ g.name = 'to_proc'
3
+ g.files = `git ls-files`.split($/)
4
+ g.version = '0.0.0'
5
+ g.summary = 'A convinience for using classes as procs.'
6
+ g.authors = ['Anatoly Chernow']
7
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: to_proc
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Anatoly Chernow
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-09-27 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/to_proc.rb
20
+ - lib/to_proc/sugar.rb
21
+ - to_proc.gemspec
22
+ homepage:
23
+ licenses: []
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubyforge_project:
41
+ rubygems_version: 2.5.1
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: A convinience for using classes as procs.
45
+ test_files: []