Class: BEL::Script::DocumentProperty
- Inherits:
-
Struct
- Object
- Struct
- BEL::Script::DocumentProperty
- Defined in:
- lib/bel/parse_objects.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
16 17 18 |
# File 'lib/bel/parse_objects.rb', line 16 def name @name end |
#value ⇒ Object
Returns the value of attribute value
16 17 18 |
# File 'lib/bel/parse_objects.rb', line 16 def value @value end |
Instance Method Details
#to_s ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/bel/parse_objects.rb', line 17 def to_s value = self.value if NonWordMatcher.match value value = %Q{"#{value}"} end %Q{SET DOCUMENT #{self.name} = #{value}} end |