Class: RBI::Arg
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value, loc: nil) ⇒ Arg
constructor
A new instance of Arg.
- #to_s ⇒ Object
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
Returns a new instance of Arg.
1057 1058 1059 1060 |
# File 'lib/rbi/model.rb', line 1057 def initialize(value, loc: nil) super(loc: loc) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
1049 1050 1051 |
# File 'lib/rbi/model.rb', line 1049 def value @value end |
Instance Method Details
#==(other) ⇒ Object
1063 1064 1065 |
# File 'lib/rbi/model.rb', line 1063 def ==(other) Arg === other && value == other.value end |
#to_s ⇒ Object
1068 1069 1070 |
# File 'lib/rbi/model.rb', line 1068 def to_s value end |