bel_parser 1.0.0.alpha.37-java → 1.0.0.alpha.38-java

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
  SHA1:
3
- metadata.gz: df5de40d49fa5f1c92d8c28e18ad5de50fe47e7b
4
- data.tar.gz: 0e5415a703c7c80fd790a03202deb2e89a8bfedf
3
+ metadata.gz: c8054ff03d78df3934f61db423d11059802405f5
4
+ data.tar.gz: 456a92fc5131cf4a59c53bf18771383db86a8fe4
5
5
  SHA512:
6
- metadata.gz: bbaa9c67cd6d17658ffb199848cbbac9f811cc6acbbdfda28c9aa3b51e42d4a2779a5a2ed5a372147e85f0f934a552d638cfe789f3429a489064b3b1526e1cd1
7
- data.tar.gz: fb1963ecb11a771c562f0840996f178f3eb2e56d64e072b3c6c0563c85fb42fba344e4200393239226b8e7800080b41f925e425175b351bb6c305ffa44cdaf9c
6
+ metadata.gz: 887008830f084cf37e994e15a79ae991a4a6d268f319d673f9234f6d498a0171c9d1b65ea1d315891f59de7c5775e50ae9ecad208cf96e5b095b4f6c5a5686ee
7
+ data.tar.gz: f3a7824168869bce31ce8c1f2f834cfe64c8335e231acb059691100075826405b77c8013f361e7f665c528bef59efc79be0ec4419891b0afa2f4387aecc25ba4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.alpha.37
1
+ 1.0.0.alpha.38
@@ -52,6 +52,16 @@ module BELParser
52
52
  value.to_s
53
53
  end
54
54
 
55
+ def to_h(hash = {})
56
+ hash.merge!({
57
+ 'short' => short,
58
+ 'long' => long,
59
+ 'return_type' => return_type.to_sym.to_s,
60
+ 'signatures' => signatures.map { |sig| sig.string_form },
61
+ 'description' => description
62
+ })
63
+ end
64
+
55
65
  private
56
66
 
57
67
  def _form_value(form = :short)
@@ -87,6 +87,14 @@ module BELParser
87
87
  value.to_s
88
88
  end
89
89
 
90
+ def to_h(hash = {})
91
+ hash.merge!({
92
+ 'short' => short,
93
+ 'long' => long,
94
+ 'description' => description
95
+ })
96
+ end
97
+
90
98
  private
91
99
 
92
100
  def _form_value(form = :short)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bel_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha.37
4
+ version: 1.0.0.alpha.38
5
5
  platform: java
6
6
  authors:
7
7
  - Anthony Bargnesi