class Mondrian::OLAP::Schema::CellFormatter

Public Class Methods

new(name = nil, attributes = {}, parent = nil, &block) click to toggle source
Calls superclass method Mondrian::OLAP::SchemaElement::new
# File lib/mondrian/olap/schema_udf.rb, line 224
def initialize(name = nil, attributes = {}, parent = nil, &block)
  super
  if name && !attributes[:class_name] && !block_given?
    # use shared ruby implementation
    @attributes[:class_name] = ruby_formatter_java_class_name(name)
    @attributes.delete(:name)
  end
end

Public Instance Methods

ruby(*options, &block) click to toggle source
# File lib/mondrian/olap/schema_udf.rb, line 233
def ruby(*options, &block)
  ruby_formatter(options, Java::mondrian.spi.CellFormatter, 'formatCell', [java.lang.String, java.lang.Object], &block)
end