Class: RBI::Arg
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
: String.
Attributes inherited from Node
Instance Method Summary collapse
-
#==(other) ⇒ Object
: (Object? other) -> bool.
-
#initialize(value, loc: nil) ⇒ Arg
constructor
: (String value, ?loc: Loc?) -> void.
-
#to_s ⇒ Object
: -> String.
Methods inherited from Node
#compatible_with?, #detach, #merge_with, #parent_conflict_tree, #parent_scope, #print, #rbs_print, #rbs_string, #replace, #satisfies_version?, #string
Constructor Details
#initialize(value, loc: nil) ⇒ Arg
: (String value, ?loc: Loc?) -> void
807 808 809 810 |
# File 'lib/rbi/model.rb', line 807 def initialize(value, loc: nil) super(loc: loc) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
: String
804 805 806 |
# File 'lib/rbi/model.rb', line 804 def value @value end |
Instance Method Details
#==(other) ⇒ Object
: (Object? other) -> bool
813 814 815 |
# File 'lib/rbi/model.rb', line 813 def ==(other) Arg === other && value == other.value end |
#to_s ⇒ Object
: -> String
818 819 820 |
# File 'lib/rbi/model.rb', line 818 def to_s value end |