Sha256: bbfdef18118350f4c610f6decffb7f01c8660e19d3954924734e9266df182168
Contents?: true
Size: 351 Bytes
Versions: 11
Compression:
Stored size: 351 Bytes
Contents
# frozen_string_literal: true # DSL#missing_method module DSL # If a method call is missing, then delegate to concept parent. def method_missing(method, args = {}) a = method.to_s return instance_eval("get(:#{a[0, a.size - 1]})") if a[a.size - 1] == '?' return check a[6, a.size], args if a[0,6]=='check_' check a, args end end
Version data entries
11 entries across 11 versions & 1 rubygems