koine-attributes 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +1 -0
- data/lib/koine/attributes.rb +11 -2
- data/lib/koine/attributes/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0e5084ba31f9adf1ea9b5fb6b78e9610fe9f356cfad3750ad29462464a1b32e1
|
4
|
+
data.tar.gz: 3f95460ef6d2b437f1acaa4c2b09e4362c89064eb6bde193bfae07bbeb6766f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d51f5a49e6c18ed7222eddb3ddd371f4e1f48650593d6bb077f4af938e9d699afeca5d9f811a48fcf6755cae895c9cc48639da54199a3339959826e7ed98c9af
|
7
|
+
data.tar.gz: 1df02b7f68f1ff5b19d32a01253ef8aa8dd671cd41de21f6715da37387120bbd656a34f54a136381cfc56a20a6a626ca7d7eec2542653da713b962c325e37ae8
|
data/.travis.yml
CHANGED
data/lib/koine/attributes.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'forwardable'
|
2
1
|
require 'koine/attributes/version'
|
3
2
|
require 'koine/attributes/adapter/base'
|
4
3
|
|
@@ -154,7 +153,17 @@ module Koine
|
|
154
153
|
@_attributes_factory.add_attribute(name, adapter, &block)
|
155
154
|
|
156
155
|
instance_eval do
|
157
|
-
|
156
|
+
define_method name do
|
157
|
+
attributes.send(name)
|
158
|
+
end
|
159
|
+
|
160
|
+
define_method "#{name}=" do |value|
|
161
|
+
attributes.send("#{name}=", value)
|
162
|
+
end
|
163
|
+
|
164
|
+
define_method "with_#{name}" do |value|
|
165
|
+
attributes.send("with_#{name}", value)
|
166
|
+
end
|
158
167
|
|
159
168
|
define_method :== do |other|
|
160
169
|
attributes == other.send(:attributes)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: koine-attributes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcelo Jacobus
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
163
|
version: '0'
|
164
164
|
requirements: []
|
165
165
|
rubyforge_project:
|
166
|
-
rubygems_version: 2.6
|
166
|
+
rubygems_version: 2.7.6
|
167
167
|
signing_key:
|
168
168
|
specification_version: 4
|
169
169
|
summary: Stronger setters and getters
|