class WhirledPeas::Settings::Border
Constants
- Style
Attributes
_color[R]
_style[R]
bottom[W]
inner_horiz[W]
inner_vert[W]
left[W]
right[W]
theme[R]
top[W]
Public Class Methods
inherit(parent)
click to toggle source
# File lib/whirled_peas/settings/border.rb, line 54 def self.inherit(parent) border = new(parent.theme) border.inherit(parent) border end
new(theme)
click to toggle source
# File lib/whirled_peas/settings/border.rb, line 64 def initialize(theme) @theme = theme end
Public Instance Methods
bottom?()
click to toggle source
# File lib/whirled_peas/settings/border.rb, line 80 def bottom? @bottom == true end
color()
click to toggle source
# File lib/whirled_peas/settings/border.rb, line 108 def color @_color || theme.border_color end
color=(val)
click to toggle source
# File lib/whirled_peas/settings/border.rb, line 104 def color=(val) @_color = TextColor.validate!(val) end
inherit(parent)
click to toggle source
# File lib/whirled_peas/settings/border.rb, line 112 def inherit(parent) @_style = parent._style @_color = parent._color end
inner_horiz?()
click to toggle source
# File lib/whirled_peas/settings/border.rb, line 84 def inner_horiz? @inner_horiz == true end
inner_vert?()
click to toggle source
# File lib/whirled_peas/settings/border.rb, line 88 def inner_vert? @inner_vert == true end
left?()
click to toggle source
# File lib/whirled_peas/settings/border.rb, line 68 def left? @left == true end
outer?()
click to toggle source
# File lib/whirled_peas/settings/border.rb, line 92 def outer? left? || top? || right? || bottom? end
right?()
click to toggle source
# File lib/whirled_peas/settings/border.rb, line 76 def right? @right == true end
style()
click to toggle source
# File lib/whirled_peas/settings/border.rb, line 96 def style @_style || theme.border_style || Styles::DEFAULT end
style=(val)
click to toggle source
# File lib/whirled_peas/settings/border.rb, line 100 def style=(val) @_style = Styles.validate!(val) end
top?()
click to toggle source
# File lib/whirled_peas/settings/border.rb, line 72 def top? @top == true end