Class: Ext::Function

Inherits:
Base
  • Object
show all
Defined in:
lib/ext/function.rb

Instance Method Summary collapse

Methods inherited from Base

#args, #camelize_keys, ext_patch, #fixed_values, #option, #options, to_json, #to_s

Constructor Details

#initialize(block) ⇒ Function

Returns a new instance of Function.



2
3
4
# File 'lib/ext/function.rb', line 2

def initialize(block)
  @block = block
end

Instance Method Details

#to_jsonObject



6
7
8
# File 'lib/ext/function.rb', line 6

def to_json
  proc {"function(value){return value.dateFormat('%s');}"}
end