Class: Mondrian::OLAP::Schema::CellFormatter
Instance Attribute Summary
#xml_fragments
Instance Method Summary
collapse
#javascript
attributes, content, data_dictionary_names, elements, #to_xml, #xml
Constructor Details
#initialize(name = nil, attributes = {}, parent = nil, &block) ⇒ CellFormatter
283
284
285
286
287
288
289
290
|
# File 'lib/mondrian/olap/schema_udf.rb', line 283
def initialize(name = nil, attributes = {}, parent = nil, &block)
super
if name && !attributes[:class_name] && !block_given?
@attributes[:class_name] = ruby_formatter_java_class_name(name)
@attributes.delete(:name)
end
end
|
Instance Method Details
#coffeescript(text) ⇒ Object
292
293
294
|
# File 'lib/mondrian/olap/schema_udf.rb', line 292
def coffeescript(text)
coffeescript_function('(value)', text)
end
|
#ruby(*options, &block) ⇒ Object
296
297
298
|
# File 'lib/mondrian/olap/schema_udf.rb', line 296
def ruby(*options, &block)
ruby_formatter(options, Java::mondrian.spi.CellFormatter, 'formatCell', [java.lang.String, java.lang.Object], &block)
end
|