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
: String.
Instance Method Summary collapse
-
#==(other) ⇒ Object
: (untyped other) -> bool.
-
#initialize(value) ⇒ Flag
constructor
: (String value) -> void.
-
#inspect ⇒ Object
: -> String.
Constructor Details
#initialize(value) ⇒ Flag
: (String value) -> void
58 59 60 61 |
# File 'lib/cli/kit/args/parser/node.rb', line 58 def initialize(value) @value = value super() end |
Instance Attribute Details
#value ⇒ Object (readonly)
: String
55 56 57 |
# File 'lib/cli/kit/args/parser/node.rb', line 55 def value @value end |
Instance Method Details
#==(other) ⇒ Object
: (untyped other) -> bool
70 71 72 |
# File 'lib/cli/kit/args/parser/node.rb', line 70 def ==(other) !!(super(other) && @value == other.value) end |
#inspect ⇒ Object
: -> String
65 66 67 |
# File 'lib/cli/kit/args/parser/node.rb', line 65 def inspect "#<#{self.class.name} #{@value}>" end |