class TLAW::Param::DuckType

@private

Public Instance Methods

_convert(value) click to toggle source
# File lib/tlaw/param/type.rb, line 68
def _convert(value)
  value.send(type)
end
to_doc_type() click to toggle source
# File lib/tlaw/param/type.rb, line 77
def to_doc_type
  "##{type}"
end
validate(value) click to toggle source
# File lib/tlaw/param/type.rb, line 72
def validate(value)
  value.respond_to?(type) or
    nonconvertible!(value, "not responding to #{type}")
end