Class: XDR::Option
- Inherits:
-
Object
- Object
- XDR::Option
- Includes:
- Concerns::ConvertsToXDR
- Defined in:
- lib/xdr/option.rb
Instance Attribute Summary collapse
-
#child_type ⇒ Object
readonly
Returns the value of attribute child_type.
Instance Method Summary collapse
-
#initialize(child_type) ⇒ Option
constructor
A new instance of Option.
- #read(io) ⇒ Object
- #valid?(val) ⇒ Boolean
- #write(val, io) ⇒ Object
Methods included from Concerns::ConvertsToXDR
Constructor Details
#initialize(child_type) ⇒ Option
Returns a new instance of Option.
8 9 10 11 |
# File 'lib/xdr/option.rb', line 8 def initialize(child_type) # TODO, raise an error if child_type is not ConvertToXDR @child_type = child_type end |
Instance Attribute Details
#child_type ⇒ Object (readonly)
Returns the value of attribute child_type.
6 7 8 |
# File 'lib/xdr/option.rb', line 6 def child_type @child_type end |