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

Inherits:
CLI::Kit::Args::Parser::Node show all
Defined in:
lib/cli/kit/args/parser/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from T::Sig

#sig

Constructor Details

#initialize(value) ⇒ Unparsed

Returns a new instance of Unparsed.



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

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



124
125
126
# File 'lib/cli/kit/args/parser/node.rb', line 124

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

#inspectObject



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

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