morse_nameable 1.0.3 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/morse_nameable/version.rb +1 -1
- data/lib/nameable.rb +17 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91d2493f4d1df390d783e4d210ecdba9bbcfae43
|
4
|
+
data.tar.gz: d4ddaea2fad79ef46b73597cd816d558af6af016
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9688e21c0e4651e00a15c8c55ede511e2e82307e419209cbecf0353200d51c7177b2beef3c1e8cc47513afdcb00c706384ea56a36d4800753c6508d62751c35
|
7
|
+
data.tar.gz: 98d51a9d88b4286c53d049f18b390a9135a93bde9ef0410e1af7c57f9788a5a4b5e647309c3dded45eb90959bf181835c3b64754232baf89f99124fdbc772e5c
|
data/lib/nameable.rb
CHANGED
@@ -24,6 +24,14 @@ module Nameable
|
|
24
24
|
|
25
25
|
public
|
26
26
|
|
27
|
+
def first_name
|
28
|
+
firstname
|
29
|
+
end
|
30
|
+
|
31
|
+
def first_name=(thing)
|
32
|
+
self.firstname=thing
|
33
|
+
end
|
34
|
+
|
27
35
|
def full_name
|
28
36
|
"#{firstname} #{lastname}"
|
29
37
|
end
|
@@ -32,6 +40,15 @@ module Nameable
|
|
32
40
|
"#{lastname.upcase}, #{firstname}"
|
33
41
|
end
|
34
42
|
|
43
|
+
def surname
|
44
|
+
lastname
|
45
|
+
end
|
46
|
+
|
47
|
+
|
48
|
+
def surname=(thing)
|
49
|
+
self.lastname=thing
|
50
|
+
end
|
51
|
+
|
35
52
|
private
|
36
53
|
|
37
54
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: morse_nameable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Terry S
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-08-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: morse_fields_validator
|