class Knockout::Computed
Public Class Methods
new(&block)
click to toggle source
# File lib/opal/knockout/computed.rb, line 3 def initialize(&block) @callback = %x{ ko.computed(function() { return #{block.call}; }); } end
Public Instance Methods
to_n()
click to toggle source
# File lib/opal/knockout/computed.rb, line 15 def to_n @callback end
to_s()
click to toggle source
# File lib/opal/knockout/computed.rb, line 11 def to_s @callback.call end