Class: Relax2::FluentArg::NameValuePair
- Inherits:
-
Struct
- Object
- Struct
- Relax2::FluentArg::NameValuePair
- Defined in:
- lib/relax2/fluent_arg.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize ⇒ NameValuePair
constructor
A new instance of NameValuePair.
- #to_a ⇒ Object
Constructor Details
#initialize ⇒ NameValuePair
Returns a new instance of NameValuePair.
9 10 11 12 |
# File 'lib/relax2/fluent_arg.rb', line 9 def initialize(...) super freeze end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
8 9 10 |
# File 'lib/relax2/fluent_arg.rb', line 8 def name @name end |
#value ⇒ Object
Returns the value of attribute value
8 9 10 |
# File 'lib/relax2/fluent_arg.rb', line 8 def value @value end |
Instance Method Details
#to_a ⇒ Object
14 15 16 |
# File 'lib/relax2/fluent_arg.rb', line 14 def to_a [name, value] end |