Class: Fzeet::WindowMethods::Style
- Inherits:
-
Object
- Object
- Fzeet::WindowMethods::Style
- Defined in:
- lib/fzeet/windows/user/Window/WindowMethods.rb
Instance Method Summary collapse
- #<<(style) ⇒ Object
- #>>(style) ⇒ Object
-
#initialize(window) ⇒ Style
constructor
A new instance of Style.
- #toggle(what) ⇒ Object
Constructor Details
#initialize(window) ⇒ Style
Returns a new instance of Style.
76 |
# File 'lib/fzeet/windows/user/Window/WindowMethods.rb', line 76 def initialize(window) @window = window end |
Instance Method Details
#<<(style) ⇒ Object
78 |
# File 'lib/fzeet/windows/user/Window/WindowMethods.rb', line 78 def <<(style) @window.long[:style] = @window.long[:style] | Fzeet.constant(style, *@window.class::Prefix[:style]); self end |
#>>(style) ⇒ Object
79 |
# File 'lib/fzeet/windows/user/Window/WindowMethods.rb', line 79 def >>(style) @window.long[:style] = @window.long[:style] & ~Fzeet.constant(style, *@window.class::Prefix[:style]); self end |
#toggle(what) ⇒ Object
81 |
# File 'lib/fzeet/windows/user/Window/WindowMethods.rb', line 81 def toggle(what) send((@window.style?(what)) ? :>> : :<<, what); self end |