accessor_utilities 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/accessor_utilities/string_instance.rb +15 -1
- metadata +3 -3
@@ -30,7 +30,21 @@ module ::AccessorUtilities::StringInstance
|
|
30
30
|
#########################
|
31
31
|
|
32
32
|
def write_accessor_name
|
33
|
-
|
33
|
+
|
34
|
+
case self[ -1 ]
|
35
|
+
|
36
|
+
when '?'
|
37
|
+
return_value = self.dup
|
38
|
+
return_value[ -1 ] = '='
|
39
|
+
when '='
|
40
|
+
return_value = to_sym
|
41
|
+
else
|
42
|
+
return_value = ( self + '=' ).to_sym
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
return return_value
|
47
|
+
|
34
48
|
end
|
35
49
|
|
36
50
|
##################
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: accessor_utilities
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-11 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Extends String and Symbol instances with variable/accessor methods, provides
|
15
15
|
swizzling helpers, provides accessor-related math for transforming :accessor, :reader,
|
@@ -45,7 +45,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
45
45
|
requirements:
|
46
46
|
- - ! '>='
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: 1.9.1
|
49
49
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|