Class: CLI::Kit::Args::Parser::Node::Flag
- Inherits:
-
CLI::Kit::Args::Parser::Node
- Object
- CLI::Kit::Args::Parser::Node
- CLI::Kit::Args::Parser::Node::Flag
- 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) ⇒ Flag
constructor
A new instance of Flag.
- #inspect ⇒ Object
Methods included from T::Sig
Constructor Details
#initialize(value) ⇒ Flag
Returns a new instance of Flag.
62 63 64 65 |
# File 'lib/cli/kit/args/parser/node.rb', line 62 def initialize(value) @value = value super() end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
59 60 61 |
# File 'lib/cli/kit/args/parser/node.rb', line 59 def value @value end |
Instance Method Details
#==(other) ⇒ Object
74 75 76 |
# File 'lib/cli/kit/args/parser/node.rb', line 74 def ==(other) !!(super(other) && @value == other.value) end |
#inspect ⇒ Object
69 70 71 |
# File 'lib/cli/kit/args/parser/node.rb', line 69 def inspect "#<#{self.class.name} #{@value}>" end |