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
: String.
Instance Method Summary collapse
-
#==(other) ⇒ Object
: (untyped other) -> bool.
-
#initialize(value) ⇒ Argument
constructor
: (String value) -> void.
-
#inspect ⇒ Object
: -> String.
Constructor Details
#initialize(value) ⇒ Argument
: (String value) -> void
88 89 90 91 |
# File 'lib/cli/kit/args/parser/node.rb', line 88 def initialize(value) @value = value super() end |
Instance Attribute Details
#value ⇒ Object (readonly)
: String
85 86 87 |
# File 'lib/cli/kit/args/parser/node.rb', line 85 def value @value end |
Instance Method Details
#==(other) ⇒ Object
: (untyped other) -> bool
99 100 101 |
# File 'lib/cli/kit/args/parser/node.rb', line 99 def ==(other) !!(super(other) && @value == other.value) end |
#inspect ⇒ Object
: -> String
94 95 96 |
# File 'lib/cli/kit/args/parser/node.rb', line 94 def inspect "#<#{self.class.name} #{@value}>" end |