Class: Vedeu::Style
- Inherits:
-
Object
- Object
- Vedeu::Style
- Defined in:
- lib/vedeu/models/style.rb
Instance Attribute Summary collapse
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
- #escape_sequences ⇒ String private private
- #initialize(values) ⇒ Style constructor
- #to_s ⇒ String
Constructor Details
#initialize(values) ⇒ Style
8 9 10 |
# File 'lib/vedeu/models/style.rb', line 8 def initialize(values) @values = values end |
Instance Attribute Details
#values ⇒ Object (readonly)
Returns the value of attribute values.
4 5 6 |
# File 'lib/vedeu/models/style.rb', line 4 def values @values end |
Instance Method Details
#escape_sequences ⇒ String (private)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 24 25 26 27 28 29 |
# File 'lib/vedeu/models/style.rb', line 21 def escape_sequences @_sequences ||= if values.nil? || values.empty? '' else Array(values).flatten.map { |value| Esc.string(value) }.join end end |
#to_s ⇒ String
13 14 15 |
# File 'lib/vedeu/models/style.rb', line 13 def to_s escape_sequences end |