class Orgy::OrgString
OrgString
¶ ↑
Contains any plain text data that will need to be passed into an object
If you plan on a string containing any child elements in the org file you need to use this class. Otherwise, use a regular string
Public Class Methods
new(string)
click to toggle source
Takes a string
Calls superclass method
Orgy::OrgData::new
# File lib/orgy/org_string.rb, line 12 def initialize string super() @data[:string] = string.to_s end
Public Instance Methods
to_s()
click to toggle source
Print the string and any child elements
Calls superclass method
Orgy::OrgObject#to_s
# File lib/orgy/org_string.rb, line 18 def to_s @data[:string].to_s << super end