Class: StringMeta
Instance Method Summary collapse
-
#initialize ⇒ StringMeta
constructor
A new instance of StringMeta.
- #load(value) ⇒ Object
- #result ⇒ Object
Constructor Details
#initialize ⇒ StringMeta
Returns a new instance of StringMeta.
5 6 7 |
# File 'lib/meta/StringMeta.rb', line 5 def initialize() @length = nil end |
Instance Method Details
#load(value) ⇒ Object
12 13 14 |
# File 'lib/meta/StringMeta.rb', line 12 def load(value) @length = value.length end |
#result ⇒ Object
16 17 18 19 20 21 |
# File 'lib/meta/StringMeta.rb', line 16 def result() { :type => :string, :length => @length } end |