Class: Victor::CLI::XMLText
- Inherits:
-
Object
- Object
- Victor::CLI::XMLText
- Defined in:
- lib/victor/cli/xml_text.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ XMLText
constructor
A new instance of XMLText.
Constructor Details
#initialize(text) ⇒ XMLText
Returns a new instance of XMLText.
6 7 8 |
# File 'lib/victor/cli/xml_text.rb', line 6 def initialize(text) @text = text.strip end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
4 5 6 |
# File 'lib/victor/cli/xml_text.rb', line 4 def text @text end |