ure 0.0.5 → 0.0.6

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -0
  3. data/lib/ure/version.rb +1 -1
  4. data/lib/ure.rb +0 -4
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd2538e949add44f0463ee01bc325f693b9ee0c7
4
- data.tar.gz: 917b6e0b30714ec064b0001858d306dafb03010f
3
+ metadata.gz: eb5bb37a896ac67dd73e2e69c9836da2a3c58917
4
+ data.tar.gz: f9fe526891f4922e835198fe603076c23a163d4a
5
5
  SHA512:
6
- metadata.gz: 12c7ca3a47855c9f655f5aa8d37c30c940c8947869ce584b959e4f37ef8b213d039c5a0c8cf19e18d192b79c7c59cc3c45243caf2fa1f49d7637e8be62f3415d
7
- data.tar.gz: 0b603cda9974f0ec4220c05a5897f738b3e111d38128252343c5ff8e1582b12997cf300c114a87afdb9d399335b3a1b6dcca296cb1c0fa260df9856f641a51eb
6
+ metadata.gz: 0f0a755a6c0b538ec984bd7a8e88f801f9d02882f41503ac138a1868b2ee312d295ba7f3e167f839ffbe664f96e019cca684bbf6b3f5e5eaea54d05ffc9e2da3
7
+ data.tar.gz: c62e15bdb9a0143732ed61e7b3be868bb2097578f0fead0d33e939d3cd88f1bd8c9e4aa8b9d519890a8195aabf322bc6969867a4d8b388dcd5c9028782fb1449
data/README.md CHANGED
@@ -76,6 +76,10 @@ Any methods on `Struct` that require indexing or care about the position of argu
76
76
 
77
77
  Ure's current public methods are:
78
78
 
79
+ `#==()` - Evaluates the fields. Returns true if the passed argument is an Ure class and they are the same members and values.
80
+
81
+ `#members` - Returns an array of the required keywords.
82
+
79
83
  `#[]` - Because Ure doesn't care about indexing, this allows users to treat instances of Ure as a hash.
80
84
 
81
85
  `#each(&block)` - Converts the fields into a hash and calls each on them.
data/lib/ure/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Ure < BasicObject
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/ure.rb CHANGED
@@ -6,10 +6,6 @@ class Ure < BasicObject
6
6
  @members
7
7
  end
8
8
 
9
- def self.class
10
- @class
11
- end
12
-
13
9
  def self.new(*members, &body)
14
10
  ::Class.new(self) do
15
11
  instance_variable_set(:@members, members)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clayton Flesher