mitch 0.0.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 +7 -0
- data/lib/mitch.rb +52 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b94d9a20669ca90442b9b1f5e737c1a8e966e25f
|
4
|
+
data.tar.gz: 0b528887e4c98d1bb4b49dcf09bdb335699f7643
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 87108ae9912f5c9de602731518524582d8dcb1b9ceb670de71d24c4e2ae4137361e7a1c94be6597867339dc8cd121347bb15aa8e7db8397fdf1fd691035c265e
|
7
|
+
data.tar.gz: 864746cc02eab806359570621eb02c471cb99787edb27419a45b1b64ca3db682c44b589e78c1df5280b595364b1f8ab9f6b845193ee1f0218d91796e9ca950e6
|
data/lib/mitch.rb
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
class Array
|
2
|
+
def crush(&block)
|
3
|
+
each(&block)
|
4
|
+
end
|
5
|
+
|
6
|
+
def slam
|
7
|
+
self.pop(0)
|
8
|
+
end
|
9
|
+
|
10
|
+
def worth_slammin?
|
11
|
+
!self.empty?
|
12
|
+
end
|
13
|
+
|
14
|
+
alias_method :pump, :crush
|
15
|
+
end
|
16
|
+
|
17
|
+
class Mitch
|
18
|
+
def initialize(iterable)
|
19
|
+
@iterable = iterable
|
20
|
+
end
|
21
|
+
|
22
|
+
def each
|
23
|
+
@iterable.each do |x|
|
24
|
+
yield x
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
module Kernel
|
30
|
+
def crush(x)
|
31
|
+
Mitch.new(x)
|
32
|
+
end
|
33
|
+
|
34
|
+
alias_method :pump, :crush
|
35
|
+
alias_method :slam, :crush
|
36
|
+
|
37
|
+
define_method(:qwert) { |*arg| puts arg.to_s + " daddy "}
|
38
|
+
alias_method :origato, :qwert
|
39
|
+
end
|
40
|
+
|
41
|
+
CLASS_REP = "Ross Duquette"
|
42
|
+
|
43
|
+
def fetch_dog
|
44
|
+
CLASS_REP
|
45
|
+
end
|
46
|
+
|
47
|
+
|
48
|
+
# i'm gonna munch a za
|
49
|
+
# this guy develops software
|
50
|
+
# this guy's a yam, squash
|
51
|
+
# synagogue of steel
|
52
|
+
# church of iron
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mitch
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Arjun Bali
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-03-17 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Mitch is a gem, dude.
|
14
|
+
email: arjun.bali96@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/mitch.rb
|
20
|
+
homepage: http://rubygems.org/gems/mitch
|
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
|
+
rubyforge_project:
|
40
|
+
rubygems_version: 2.4.5
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: Dude.
|
44
|
+
test_files: []
|