Class: Nydp::Builtin::LessThan
- Includes:
- Base, Singleton
- Defined in:
- lib/nydp/builtin/less_than.rb
Instance Method Summary collapse
Methods included from Base
#call, #handle_error, ignore_errors, #inspect, #nydp_type, #to_s
Methods included from Helper
#cons, #list, #literal?, #pair?, #sig, #sym, #sym?
Methods included from Converter
Instance Method Details
#builtin_call(arg, *args) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/nydp/builtin/less_than.rb', line 4 def builtin_call arg, *args while !args.empty? return nil unless args.first && (arg < args.first) arg = args.shift end return arg end |
#name ⇒ Object
12 |
# File 'lib/nydp/builtin/less_than.rb', line 12 def name ; "<" ; end |