module Rensei::Unparser
Constants
- VERSION
Public Class Methods
unparse(node, opt = {})
click to toggle source
# File lib/rensei/unparser.rb, line 1642 def self.unparse(node, opt = {}) Caller.new.unparse(node, opt) end
Public Instance Methods
bracket(prefix = "(", suffix = ")")
click to toggle source
# File lib/rensei/unparser.rb, line 31 def bracket(prefix = "(", suffix = ")") "#{prefix}#{self}#{suffix}" end
children()
click to toggle source
# File lib/rensei/unparser.rb, line 11 def children self[:children] end
escape()
click to toggle source
# File lib/rensei/unparser.rb, line 35 def escape inspect[1..-2] end
except(*keys)
click to toggle source
# File lib/rensei/unparser.rb, line 15 def except(*keys) slice(*self.keys - keys) end
type()
click to toggle source
# File lib/rensei/unparser.rb, line 7 def type self[:type] end