Undef
represents the use of the undef
keyword.
undef methodAttributes Public Class Methods Source
def initialize(symbols:, location:) @symbols = symbols @location = location @comments = [] endPublic Instance Methods Source
def ===(other) other.is_a?(Undef) && ArrayMatch.call(symbols, other.symbols) endSource
def accept(visitor) visitor.visit_undef(self) endSource
def child_nodes symbols endSource
def copy(symbols: nil, location: nil) node = Undef.new( symbols: symbols || self.symbols, location: location || self.location ) node.comments.concat(comments.map(&:copy)) node endSource
def deconstruct_keys(_keys) { symbols: symbols, location: location, comments: comments } endSource
def format(q) keyword = "undef " formatters = symbols.map { |symbol| UndefArgumentFormatter.new(symbol) } q.group do q.text(keyword) q.nest(keyword.length) do q.seplist(formatters) { |formatter| q.format(formatter) } end end end
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4