class_variants 0.0.4 → 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: 4780d216a018db941e8e96886478a5aa7bd16f5248de9a676f015811928aa638
4
- data.tar.gz: 17a48e550a1e22ebf16e9841e2b10252f4c1026656454ed8cd785879105bc5c6
3
+ metadata.gz: ff3460025f84ed33be2203bd2340bfa5769342778ff2d8b8656b28ff05dd858f
4
+ data.tar.gz: 05d3075c1c174ba4140f40a5755b4972160708ca9afc5866207a7d222802efc2
5
5
  SHA512:
6
- metadata.gz: cfa942f88c875214541e95ac2e9ce454934641570aaefb96d179120b1feefc27eb6df61f89525802f9f72ab46864364088b843cac78dd48b1d4572f89aa02d60
7
- data.tar.gz: 427590f3b012493e159675cd96f22f7a206f171656fb22727dc0e44c93f831580c89c4ffe960a09ea37f8e75459831f39289d8cd79c4b57c63a5289d11eeb6f8
6
+ metadata.gz: 7719a590c8afc043a1e3538c4e0c91d38f0d968951f555ed782a0254a7b539573ba0ba4034d91f50507cfba331d37989f8dee3d47aa97fbab2f7508337b64c3d
7
+ data.tar.gz: 553a22135fb34a7b853da679fb0cc8db3e68c2394ad13a0e8fd8a4c8a60fcabfef4aad6d62aa52e3e1d3f98da6bd2772b240be8fc8dd5fcdbc71c73f14488cfe
@@ -1,3 +1,3 @@
1
1
  module ClassVariants
2
- VERSION = "0.0.4" 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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin