class_variants 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b60f4147746cf609f268e92a4ed0a0835b6e89f5a2fb7e0cc10b210e3a35565
4
- data.tar.gz: d308f7f0deddd82ca3ed03080308be226ab8c9ef53dfc26ecfc8d9298c9e631b
3
+ metadata.gz: ff3460025f84ed33be2203bd2340bfa5769342778ff2d8b8656b28ff05dd858f
4
+ data.tar.gz: 05d3075c1c174ba4140f40a5755b4972160708ca9afc5866207a7d222802efc2
5
5
  SHA512:
6
- metadata.gz: b82570da933a7323038ad487f5055b5c2e8d04c50174a9cd6feeb42beac9304dd1592f0db5eac531c83c5de86f949dd1e0a69548eb1947e835cd032aa77017b4
7
- data.tar.gz: 6d02b21c6813ae0ca41a8a069a05d370c6f5acfc6ef32427c04383c4fbcf4a01d78e7c3728c2eb6cee3878c7471f161fe2951cbd15679c17254005f020659dff
6
+ metadata.gz: 7719a590c8afc043a1e3538c4e0c91d38f0d968951f555ed782a0254a7b539573ba0ba4034d91f50507cfba331d37989f8dee3d47aa97fbab2f7508337b64c3d
7
+ data.tar.gz: 553a22135fb34a7b853da679fb0cc8db3e68c2394ad13a0e8fd8a4c8a60fcabfef4aad6d62aa52e3e1d3f98da6bd2772b240be8fc8dd5fcdbc71c73f14488cfe
@@ -1,3 +1,3 @@
1
1
  module ClassVariants
2
- VERSION = "0.0.3" unless const_defined?(:VERSION)
2
+ VERSION = "0.0.5" unless const_defined?(:VERSION)
3
3
  end
@@ -4,4 +4,9 @@ require "class_variants/instance"
4
4
  require "class_variants/railtie" if defined?(Rails)
5
5
 
6
6
  module ClassVariants
7
+ class << self
8
+ def build(classes, **args)
9
+ Instance.new classes, **args
10
+ end
11
+ end
7
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: class_variants
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin