class Frappuccino::UntilProperty

Public Class Methods

new(first, switcher, second) click to toggle source
# File lib/frappuccino/property/until_property.rb, line 3
def initialize(first, switcher, second)
  @first = first
  @second = second
  @current_prop = @first

  switcher.on_value do |value|
    @current_prop = @second
  end
end

Public Instance Methods

now() click to toggle source
# File lib/frappuccino/property/until_property.rb, line 13
def now
  @current_prop.now
end