Class: Phlex::SGML::SafeValue

Inherits:
Object
  • Object
show all
Includes:
SafeObject
Defined in:
lib/phlex/sgml/safe_value.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_sObject (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