module DocxReport::BlockValue
Public Instance Methods
load_text_direction(item)
click to toggle source
# File lib/docx_report/block_value.rb, line 12 def load_text_direction(item) if @value.is_a? Proc val = @value.call(item) val.is_a?(Hash) ? val[:text_direction] : :none else :none end end
load_value(item)
click to toggle source
# File lib/docx_report/block_value.rb, line 3 def load_value(item) if @value.is_a? Proc val = @value.call(item) val.is_a?(Hash) ? val[:value] : val else item.is_a?(Hash) ? item[@value] : item.send(@value) end end