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

Version Path
teuton-2.1.8 lib/teuton/case_manager/case/dsl/missing.rb
teuton-2.1.8dev1 lib/teuton/case_manager/case/dsl/missing.rb
teuton-2.1.7 lib/teuton/case_manager/case/dsl/missing.rb
teuton-2.1.6 lib/teuton/case_manager/case/dsl/missing.rb
teuton-2.1.5dev lib/teuton/case_manager/case/dsl/missing.rb
teuton-2.1.4 lib/teuton/case_manager/case/dsl/missing.rb
teuton-2.1.3 lib/teuton/case_manager/case/dsl/missing.rb
teuton-2.1.2 lib/teuton/case_manager/case/dsl/missing.rb
teuton-2.1.1 lib/teuton/case_manager/case/dsl/missing.rb
teuton-2.1.0 lib/teuton/case_manager/case/dsl/missing.rb
teuton-0.0.1 lib/teuton/case_manager/case/dsl/missing.rb