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.
67 68 69 |
# File 'lib/async_partial.rb', line 67 def initialize(thread) @thread = thread end |
Instance Method Details
#html_safe? ⇒ Boolean
75 76 77 |
# File 'lib/async_partial.rb', line 75 def html_safe? true end |
#nil? ⇒ Boolean
71 72 73 |
# File 'lib/async_partial.rb', line 71 def nil? false end |
#to_s ⇒ Object
79 80 81 |
# File 'lib/async_partial.rb', line 79 def to_s self end |
#value ⇒ Object
83 84 85 86 87 |
# File 'lib/async_partial.rb', line 83 def value val = @thread.value @thread.kill val end |