Class: AsyncPartial::AsyncResult
- Inherits:
-
Object
- Object
- AsyncPartial::AsyncResult
- Defined in:
- lib/async_partial.rb
Instance Method Summary collapse
- #html_safe? ⇒ Boolean
-
#initialize(thread) ⇒ AsyncResult
constructor
A new instance of AsyncResult.
- #nil? ⇒ Boolean
- #to_s ⇒ Object
- #value ⇒ Object
Constructor Details
#initialize(thread) ⇒ AsyncResult
Returns a new instance of AsyncResult.
38 39 40 |
# File 'lib/async_partial.rb', line 38 def initialize(thread) @thread = thread end |
Instance Method Details
#html_safe? ⇒ Boolean
46 47 48 |
# File 'lib/async_partial.rb', line 46 def html_safe? true end |
#nil? ⇒ Boolean
42 43 44 |
# File 'lib/async_partial.rb', line 42 def nil? false end |
#to_s ⇒ Object
50 51 52 |
# File 'lib/async_partial.rb', line 50 def to_s self end |
#value ⇒ Object
54 55 56 57 58 |
# File 'lib/async_partial.rb', line 54 def value val = @thread.value @thread.kill val end |