class Loom::MethodSignature::MatchSpec::Builder
Public Class Methods
new()
click to toggle source
# File lib/loom/method_signature.rb, line 49 def initialize @map = { :req_args => 0, :opt_args => 0, :has_rest_args => false, :keyreq_args => 0, :key_args => 0, :has_keyrest_args => false, :has_block => false } end
Public Instance Methods
build()
click to toggle source
# File lib/loom/method_signature.rb, line 66 def build MatchSpec.new(@map || {}) end
method_missing(name, value, *args)
click to toggle source
# File lib/loom/method_signature.rb, line 61 def method_missing(name, value, *args) @map[name.to_sym] = value self end