Class: Droiuby::Android::DummyOtherwise

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

Instance Method Summary collapse

Constructor Details

#initialize(return_value) ⇒ DummyOtherwise

Returns a new instance of DummyOtherwise.



19
20
21
# File 'lib/droiuby/android.rb', line 19

def initialize(return_value)
  @return_value = return_value
end

Instance Method Details

#otherwise(&block) ⇒ Object



23
24
25
# File 'lib/droiuby/android.rb', line 23

def otherwise(&block)
  @return_value
end

#valueObject



27
28
29
# File 'lib/droiuby/android.rb', line 27

def value
  @return_value
end