Class: CLI::Kit::Args::Parser::Node::Unparsed
- Inherits:
-
CLI::Kit::Args::Parser::Node
- Object
- CLI::Kit::Args::Parser::Node
- CLI::Kit::Args::Parser::Node::Unparsed
- Defined in:
- lib/cli/kit/args/parser/node.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value) ⇒ Unparsed
constructor
A new instance of Unparsed.
- #inspect ⇒ Object
Methods included from T::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
#value ⇒ Object (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 |
#inspect ⇒ Object
119 120 121 |
# File 'lib/cli/kit/args/parser/node.rb', line 119 def inspect "#<#{self.class.name} #{@value.join(" ")}>" end |