basecustom 0.1.6 → 0.1.7

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDlhNzJkN2E3MzE4N2NhZjk3YmE4YWFhNDA3NmU3M2Q0YWU4MWQyMQ==
4
+ MTMyYjc2MzI0ZTQ0OWRmZTE4NGYwNDg4ZDY1MzljYjljN2NhZTM4ZQ==
5
5
  data.tar.gz: !binary |-
6
- N2Y2OTYzODAzZmY3YzBlNTAxMjNkMTY0ODVjNjNlNGUzNTEyNzMzMw==
6
+ ZDllYjAxMTM0NTk2MjA5NWY4NzYzM2NmYzc4MWNlYTk2M2IyMmVmZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2NkNjBiYWY3NjM0ZDVlMjEwNDY1ZTc2OTdlMDEwNTk0NDg4N2M1ZWMyMDQ1
10
- ZjI4ZWQ0ZjhkMjZhYjdmZjlmM2M5ODJmZGRlMDkwZGFhOGFiNjQzNmMwMjk5
11
- YzA4MDFiM2JhMGNjODc0NjRlMzA0NzhkMTQyMjA1ZDE1Zjc2MmY=
9
+ ZWI3MjAzNDJhNDM3MGM3YjQ1OThhYmI2M2QyNjc4ZDhmZjlmZWU2M2M5MTVk
10
+ YWEyYmFiMTE0NTgzMmY3ZmM4NmIyNWIyODc5MDYwMDAxYmM2NjMwMjg3ZGY0
11
+ NTEyMjYzNmY1N2UxNDhjMzY3YzliMGFmNTUwOWQxMTc4OWFhOWI=
12
12
  data.tar.gz: !binary |-
13
- ZTIwMzQ3MzIxNjk1MGZhYjFjMDVkODRhZWY0NzU5NDE4YmE4NjkwOTVlZmM4
14
- ZjQ5ZTdiY2I5YmQzMDdlZmJmN2I4ZGI0ZjM4YjFmZTE1Yjc2ZDcyYjQ3NTA5
15
- MDcxNTgxZjUzMGMxMzAxOWRhYWIxY2NmZDEzOTExZGYyYmE4NjI=
13
+ MGJhN2JjZjBjMGZlMDhlMjBiMzg5ODAyYmQzMzU2MGQ5ZjVkYzhhYzFiZjNj
14
+ NGEyZjJhOWFhZTY3YzFiNGQ3ZWQ5ZWI4Mjc1Y2E0ZWZmOTY4MTRlMGY0MzE4
15
+ YTU3MDYwMTg0YWQ1Mzg1YzI4NTYzYzZmODlmYjVkYjM4MWMzYWQ=
@@ -1,7 +1,9 @@
1
1
  class BaseCustom
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
4
4
 
5
+ # Version 0.1.7
6
+ # * added feature .length() and .all() functions
5
7
  # Version 0.1.6
6
8
  # * Fixed 0 as 0 bug.
7
9
  # Version 0.1.5
data/lib/basecustom.rb CHANGED
@@ -6,6 +6,7 @@ $: << File.join(File.dirname(__FILE__), "/basecustom")
6
6
  require 'basecustom/version'
7
7
 
8
8
  class BaseCustom
9
+
9
10
  def initialize(array_in, delim = '')
10
11
  if array_in.is_a?(String)
11
12
  array_in = array_in.split(delim)
@@ -54,4 +55,12 @@ class BaseCustom
54
55
  raise "#{input_val.class} is not a supported type!"
55
56
  end
56
57
  end # base
58
+
59
+ def length
60
+ return @BASE_PRIMITIVES_ARRAY.length
61
+ end
62
+
63
+ def all
64
+ return @BASE_PRIMITIVES_ARRAY.join
65
+ end
57
66
  end # class BaseCustom
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basecustom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel P. Clark / 6ftDan(TM)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-30 00:00:00.000000000 Z
11
+ date: 2014-05-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Define your own numberic base! Highly advanced and ultimately simple!
14
14
  email: webmaster@6ftdan.com