Class: CLI::Kit::Args::Parser::Node::Argument
- Inherits:
-
CLI::Kit::Args::Parser::Node
- Object
- CLI::Kit::Args::Parser::Node
- CLI::Kit::Args::Parser::Node::Argument
- 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) ⇒ Argument
constructor
A new instance of Argument.
- #inspect ⇒ Object
Methods included from T::Sig
Constructor Details
#initialize(value) ⇒ Argument
Returns a new instance of Argument.
92 93 94 95 |
# File 'lib/cli/kit/args/parser/node.rb', line 92 def initialize(value) @value = value super() end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
89 90 91 |
# File 'lib/cli/kit/args/parser/node.rb', line 89 def value @value end |
Instance Method Details
#==(other) ⇒ Object
103 104 105 |
# File 'lib/cli/kit/args/parser/node.rb', line 103 def ==(other) !!(super(other) && @value == other.value) end |
#inspect ⇒ Object
98 99 100 |
# File 'lib/cli/kit/args/parser/node.rb', line 98 def inspect "#<#{self.class.name} #{@value}>" end |