Class: VORuby::VOTables::VOTable::Type::AnyText
- Defined in:
- lib/voruby/votables/types.rb
Overview
A class that represents a vanilla-flavoured string.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(txt = nil) ⇒ AnyText
constructor
- txt:
-
The text of the string.
- #to_s ⇒ Object
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
#value ⇒ Object (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_s ⇒ Object
21 22 23 |
# File 'lib/voruby/votables/types.rb', line 21 def to_s "{#{@value}}" end |