72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# File 'lib/vedeu/models/views/html_char.rb', line 72
def border_style
case border
when :top_horizontal then css(:top)
when :left_vertical then css(:left)
when :right_vertical then css(:right)
when :bottom_horizontal then css(:bottom)
when :top_left then "#{css(:top)}#{css(:left)}".freeze
when :top_right then "#{css(:top)}#{css(:right)}".freeze
when :bottom_left then "#{css(:bottom)}#{css(:left)}".freeze
when :bottom_right then "#{css(:bottom)}#{css(:right)}".freeze
else
''
end
end
|