class Handlebars::Helpers::Comparison::Lt
Lt: (less than) Block helper that renders a block if `a` is **less 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/lt.rb, line 29 def handlebars_helper proc { |_context, lhs, rhs| wrapper(parse(lhs, rhs)) } end
parse(lhs, rhs)
click to toggle source
Parse will Lt: (less than) Block helper that renders a block if `a` is **less than** `b`. If an inverse block is specified it will be rendered when falsy.
@example
puts Lt.new.parse(1, 2) Truthy
@param [String] lhs - left hand side value @param [String] rhs - right hand side value @return [String] truthy value if left hand side LESS THAN right hand side
# File lib/handlebars/helpers/comparison/lt.rb, line 25 def parse(lhs, rhs) lhs < rhs end