rufo 0.0.8 → 0.0.9

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: 04d44caae85a5c984081c2011278932b947088f3
4
- data.tar.gz: ab2e928ecaa106be7abb7b1e304f25db241fc115
3
+ metadata.gz: 372a723ce561b8de2f2b66f0c7e75a54a3244c70
4
+ data.tar.gz: 2dc0c9d5c1bcd2b73a9cb0db3d9ed3f447cdbb08
5
5
  SHA512:
6
- metadata.gz: 83aa88bd90a0caf9c91e99bdee0f4a75c6e1e384db5a6a1e7fd4de4724cbfa574b6c834190f670afe100359e03340998dc74a228c95bfc986bd662b8d2cd0d8f
7
- data.tar.gz: 0c1123a103771cd94b70f4cc4b3e29afc970a1fd7fc9f8e0fd36869f9013e26573ae8b2e98f4960ae37913efdad7c421389c71a3cd56e72fdf162e0fd455d3c8
6
+ metadata.gz: 0c54acef4e1604b32a35c87a939c698f7a58982f1bbee9b9fd3161bff76c2fe8db94f10a98d446cd91794b46d4e43857c7a97dbc759f5567f3863e1ee80d881d
7
+ data.tar.gz: 071775e9ecba0da5b9c4cd3bdde5c65c7b8995589fd48269e0db74778cbab38fe4d5f07c94784dbb162a8c04bd3695835947e991ff9d5dc8f655c019f6d749bd
@@ -315,6 +315,8 @@ class Rufo::Formatter
315
315
  visit_defined(node)
316
316
  when :alias
317
317
  visit_alias(node)
318
+ when :undef
319
+ visit_undef(node)
318
320
  when :mlhs_add_star
319
321
  visit_mlhs_add_star(node)
320
322
  else
@@ -1910,6 +1912,15 @@ class Rufo::Formatter
1910
1912
  visit to
1911
1913
  end
1912
1914
 
1915
+ def visit_undef(node)
1916
+ # [:undef, exps]
1917
+ _, exps = node
1918
+
1919
+ consume_keyword "undef"
1920
+ consume_space
1921
+ visit_comma_separated_list exps
1922
+ end
1923
+
1913
1924
  def visit_literal_elements(elements)
1914
1925
  base_column = @column
1915
1926
 
@@ -1,3 +1,3 @@
1
1
  module Rufo
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rufo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ary Borenszweig