Permalink
Browse files

additional parenthesis to avoid Ruby warnings

  • Loading branch information...
1 parent 05b5023 commit 015f3ba8e09885b65d9f8f8264beb6b3b91097a5 @rsim committed Sep 28, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/mondrian/olap/schema.rb
  2. +1 −1 lib/mondrian/olap/schema_element.rb
  3. +1 −1 lib/mondrian/olap/schema_udf.rb
@@ -20,7 +20,7 @@ def define(name = nil, attributes = {}, &block)
name, attributes = self.class.pre_process_arguments(name, attributes)
pre_process_attributes(attributes)
@attributes[:name] = name || @attributes[:name] || 'default' # otherwise connection with empty name fails
- instance_eval &block if block
+ instance_eval(&block) if block
self
end
@@ -22,7 +22,7 @@ def initialize(name = nil, attributes = {}, &block)
instance_variable_set("@#{pluralize(element)}", [])
end
@xml_fragments = []
- instance_eval &block if block
+ instance_eval(&block) if block
end
def self.attributes(*names)
@@ -221,7 +221,7 @@ def ruby(*options, &block)
self.class.const_set(udf_class_name, udf_class) if udf_class_name
end
udf_class.function_name = name
- udf_class.class_eval &block
+ udf_class.class_eval(&block)
udf_java_class = udf_class.become_java!(false)
class_name udf_java_class.getName

0 comments on commit 015f3ba

Please sign in to comment.