Class: CLI::Kit::Args::Parser::Node::Unparsed

Inherits:
Node
  • Object
show all
Defined in:
lib/cli/kit/args/parser/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Unparsed

: (Array value) -> void



109
110
111
112
# File 'lib/cli/kit/args/parser/node.rb', line 109

def initialize(value)
  @value = value
  super()
end

Instance Attribute Details

#valueObject (readonly)

: Array



106
107
108
# File 'lib/cli/kit/args/parser/node.rb', line 106

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object

: (untyped other) -> bool



120
121
122
# File 'lib/cli/kit/args/parser/node.rb', line 120

def ==(other)
  !!(super(other) && @value == other.value)
end

#inspectObject

: -> String



115
116
117
# File 'lib/cli/kit/args/parser/node.rb', line 115

def inspect
  "#<#{self.class.name} #{@value.join(" ")}>"
end