Class: Fzeet::WindowMethods::Style

Inherits:
Object
  • Object
show all
Defined in:
lib/fzeet/Window/WindowMethods.rb

Instance Method Summary collapse

Constructor Details

#initialize(window) ⇒ Style

Returns a new instance of Style.



65
# File 'lib/fzeet/Window/WindowMethods.rb', line 65

def initialize(window) @window = window end

Instance Method Details

#<<(style) ⇒ Object



67
# File 'lib/fzeet/Window/WindowMethods.rb', line 67

def <<(style) @window.long[:style] = @window.long[:style] | Fzeet.constant(style, *@window.class::Prefix[:style]); self end

#>>(style) ⇒ Object



68
# File 'lib/fzeet/Window/WindowMethods.rb', line 68

def >>(style) @window.long[:style] = @window.long[:style] & ~Fzeet.constant(style, *@window.class::Prefix[:style]); self end

#toggle(what) ⇒ Object



70
# File 'lib/fzeet/Window/WindowMethods.rb', line 70

def toggle(what) send((@window.style?(what)) ? :>> : :<<, what); self end