Class: Phlex::SGML::SafeValue
- Inherits:
-
Object
- Object
- Phlex::SGML::SafeValue
- Includes:
- SafeObject
- Defined in:
- lib/phlex/sgml/safe_value.rb
Instance Attribute Summary collapse
-
#to_s ⇒ Object
readonly
Returns the value of attribute to_s.
Instance Method Summary collapse
-
#initialize(to_s) ⇒ SafeValue
constructor
A new instance of SafeValue.
Constructor Details
#initialize(to_s) ⇒ SafeValue
Returns a new instance of SafeValue.
6 7 8 |
# File 'lib/phlex/sgml/safe_value.rb', line 6 def initialize(to_s) @to_s = to_s end |
Instance Attribute Details
#to_s ⇒ Object (readonly)
Returns the value of attribute to_s.
10 11 12 |
# File 'lib/phlex/sgml/safe_value.rb', line 10 def to_s @to_s end |