Class: WWMD::VSStubs::VSStringFormatted
- Inherits:
-
Object
- Object
- WWMD::VSStubs::VSStringFormatted
- Includes:
- WWMD::VSStubHelpers
- Defined in:
- lib/wwmd/viewstate/vs_stubs/vs_string_formatted.rb
Instance Attribute Summary collapse
-
#typeref ⇒ Object
readonly
Returns the value of attribute typeref.
-
#typeval ⇒ Object
readonly
Returns the value of attribute typeval.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #from_xml ⇒ Object
-
#initialize(typeref, typeval, str) ⇒ VSStringFormatted
constructor
A new instance of VSStringFormatted.
- #serialize ⇒ Object
- #to_xml ⇒ Object
Methods included from WWMD::VSStubHelpers
Methods included from WWMD::ViewStateUtils
#deserialize_type, #dlog, #magic?, #next_type, #offset, #putd, #read, #read_7bit_encoded_int, #read_double, #read_int, #read_int32, #read_raw_byte, #read_short, #read_string, #serialize_type, #slog, #throw, #write_7bit_encoded_int, #write_double, #write_int, #write_int32, #write_short
Constructor Details
#initialize(typeref, typeval, str) ⇒ VSStringFormatted
Returns a new instance of VSStringFormatted.
9 10 11 12 13 |
# File 'lib/wwmd/viewstate/vs_stubs/vs_string_formatted.rb', line 9 def initialize(typeref,typeval,str) @typeref = typeref @typeval = typeval @value = str end |
Instance Attribute Details
#typeref ⇒ Object (readonly)
Returns the value of attribute typeref.
6 7 8 |
# File 'lib/wwmd/viewstate/vs_stubs/vs_string_formatted.rb', line 6 def typeref @typeref end |
#typeval ⇒ Object (readonly)
Returns the value of attribute typeval.
7 8 9 |
# File 'lib/wwmd/viewstate/vs_stubs/vs_string_formatted.rb', line 7 def typeval @typeval end |
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/wwmd/viewstate/vs_stubs/vs_string_formatted.rb', line 5 def value @value end |
Instance Method Details
#from_xml ⇒ Object
27 28 29 |
# File 'lib/wwmd/viewstate/vs_stubs/vs_string_formatted.rb', line 27 def from_xml # deserialize convenience VSString properly end |
#serialize ⇒ Object
15 16 17 18 19 |
# File 'lib/wwmd/viewstate/vs_stubs/vs_string_formatted.rb', line 15 def serialize stack = super stack << self.write_7bit_encoded_int(self.size) stack << self.value end |