Class: Mondrian::OLAP::Schema::CellFormatter
- Inherits:
-
Mondrian::OLAP::SchemaElement
- Object
- Mondrian::OLAP::SchemaElement
- Mondrian::OLAP::Schema::CellFormatter
- Includes:
- ScriptElements
- Defined in:
- lib/mondrian/olap/schema_udf.rb
Instance Attribute Summary
Attributes inherited from Mondrian::OLAP::SchemaElement
Instance Method Summary collapse
-
#initialize(name = nil, attributes = {}, parent = nil, &block) ⇒ CellFormatter
constructor
A new instance of CellFormatter.
- #ruby(*options, &block) ⇒ Object
Methods inherited from Mondrian::OLAP::SchemaElement
attributes, content, data_dictionary_names, elements, #to_xml, #xml
Constructor Details
#initialize(name = nil, attributes = {}, parent = nil, &block) ⇒ CellFormatter
Returns a new instance of CellFormatter.
224 225 226 227 228 229 230 231 |
# 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 |
Instance Method Details
#ruby(*options, &block) ⇒ Object
233 234 235 |
# File 'lib/mondrian/olap/schema_udf.rb', line 233 def ruby(*, &block) ruby_formatter(, Java::mondrian.spi.CellFormatter, 'formatCell', [java.lang.String, java.lang.Object], &block) end |