class Handlebars::Helpers::Comparison::Gt

Gt: (greater than) Block helper that renders a block if `a` is **greater than** `b`. If an inverse block is specified it will be rendered when falsy.

Public Instance Methods

handlebars_helper() click to toggle source
# File lib/handlebars/helpers/comparison/gt.rb, line 29
def handlebars_helper
  proc { |_context, lhs, rhs| wrapper(parse(lhs, rhs)) }
end
parse(lhs, rhs) click to toggle source

Parse will Gt: (greater than) Block helper that renders a block if `a` is **greater than** `b`. If an inverse block is specified it will be rendered when falsy.

@example

puts Gt.new.parse(2, 1)

Truthy

@param [String] lhs - left hand side value @param [String] rhs - right hand side value @return [String] truthy value if left hand side GREATER THAN right hand side

# File lib/handlebars/helpers/comparison/gt.rb, line 25
def parse(lhs, rhs)
  lhs > rhs
end