hack01 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hack01.rb +10 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bb5fd90adcdd11c9f217de2a19dd885b301c3d09b5a99e88982da2543db3a88
|
4
|
+
data.tar.gz: f649de4aecbd092c5ea4cf515d03fde994b39b0bd19e8540f847023ff852a3c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 700e4700e35c47afcb6c2dde38d20d6a122431ab9510de059fd503030573fb4836864c552ad1c593e8a198ae732130d167cb5179b4f2cf390205a824f8332013
|
7
|
+
data.tar.gz: 998f710bad7a4c5c72baa9e2c58493f31270a66bc8a2b6e2a81f6c5cff66dd2b96f1fc21c034a3cf387ebfa081317fc68d467299552da55199da442efca71d60
|
data/lib/hack01.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# The main Hack01 driver
|
2
|
-
|
2
|
+
module Hack01 # This can be a module or a class.
|
3
|
+
|
3
4
|
#
|
4
5
|
# from the tutorial https://guides.rubygems.org/make-your-own-gem/
|
5
6
|
# Example:
|
@@ -14,7 +15,7 @@ class Hack01
|
|
14
15
|
end
|
15
16
|
|
16
17
|
# Example:
|
17
|
-
# >>
|
18
|
+
# >> Hack01.info
|
18
19
|
# => "Making a first ruby gem"
|
19
20
|
def self.info
|
20
21
|
p "Making a first ruby gem"
|
@@ -22,12 +23,18 @@ class Hack01
|
|
22
23
|
end
|
23
24
|
|
24
25
|
# Example
|
25
|
-
# >> a =
|
26
|
+
# >> a = Hack01.new
|
26
27
|
# >> a.hello
|
27
28
|
# => "hello there"
|
28
29
|
def hello
|
29
30
|
p "hello there"
|
30
31
|
end
|
32
|
+
|
33
|
+
# didn't manage to get any css in this gem.
|
34
|
+
# suspect the Engine < Rails::Engine
|
35
|
+
# might create some issues when outside of rails?
|
36
|
+
|
37
|
+
|
31
38
|
end
|
32
39
|
|
33
40
|
require 'hack01/translator'
|