Sha256: 3aea51372e5a15e091149c5e73910aa511a67d55117d6cfbf3b625deec9ea741
Contents?: true
Size: 849 Bytes
Versions: 17
Compression:
Stored size: 849 Bytes
Contents
module Vedeu module Presentation # Provides style related presentation behaviour. # module Style # When the style for the model exists, return it, otherwise returns the # parent style, or an empty Vedeu::Style. # # @return [Vedeu::Style] def style @style ||= if attributes[:style] Vedeu::Style.coerce(attributes[:style]) elsif parent Vedeu::Style.coerce(parent.style) else Vedeu::Style.new end end # Allows the setting of the style by coercing the given value into a # Vedeu::Style. # # @return [Vedeu::Style] def style=(value) @style = Vedeu::Style.coerce(value) end end # Style end # Presentation end # Vedeu
Version data entries
17 entries across 17 versions & 1 rubygems