class Reflekt::StringMeta

Public Class Methods

new() click to toggle source
# File lib/meta/string_meta.rb, line 6
def initialize()
  @type = :string
  @length = nil
end

Public Instance Methods

load(value) click to toggle source

@param value [String]

# File lib/meta/string_meta.rb, line 14
def load(value)
  @length = value.length
end
serialize() click to toggle source
# File lib/meta/string_meta.rb, line 18
def serialize()
  {
    :type => @type,
    :length => @length
  }
end