Class: Tapioca::RBI::OptParam
- Extended by:
- T::Sig
- Defined in:
- lib/tapioca/rbi/model.rb,
lib/tapioca/rbi/printer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Param
Attributes inherited from Node
Instance Method Summary collapse
- #accept_printer(v) ⇒ Object
-
#initialize(name, value) ⇒ OptParam
constructor
A new instance of OptParam.
Methods inherited from Node
#detach, #group_kind, #oneline?, #print, #string
Constructor Details
#initialize(name, value) ⇒ OptParam
Returns a new instance of OptParam.
180 181 182 183 |
# File 'lib/tapioca/rbi/model.rb', line 180 def initialize(name, value) super(name) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
177 178 179 |
# File 'lib/tapioca/rbi/model.rb', line 177 def value @value end |
Instance Method Details
#accept_printer(v) ⇒ Object
210 211 212 |
# File 'lib/tapioca/rbi/printer.rb', line 210 def accept_printer(v) v.print("#{name} = #{value}") end |