Class: VORuby::VOTables::VOTable::Type::AnyText

Inherits:
Object
  • Object
show all
Defined in:
lib/voruby/votables/types.rb

Overview

A class that represents a vanilla-flavoured string.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(txt = nil) ⇒ AnyText

txt:

The text of the string.



17
18
19
# File 'lib/voruby/votables/types.rb', line 17

def initialize(txt=nil)
@value = txt
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



13
14
15
# File 'lib/voruby/votables/types.rb', line 13

def value
  @value
end

Instance Method Details

#to_sObject



21
22
23
# File 'lib/voruby/votables/types.rb', line 21

def to_s
"{#{@value}}"
end