Class: Droiuby::Android::Otherwise

Inherits:
Object
  • Object
show all
Defined in:
lib/droiuby/android.rb

Instance Method Summary collapse

Constructor Details

#initializeOtherwise

Returns a new instance of Otherwise.



5
6
# File 'lib/droiuby/android.rb', line 5

def initialize
end

Instance Method Details

#otherwise(&block) ⇒ Object



8
9
10
# File 'lib/droiuby/android.rb', line 8

def otherwise(&block)
  @return_value = block.call
end

#valueObject



12
13
14
# File 'lib/droiuby/android.rb', line 12

def value
  @return_value
end