module Excom::Plugins::DryTypes::ClassMethods

Public Instance Methods

args(*) click to toggle source
# File lib/excom/plugins/dry_types.rb, line 52
def args(*)
  raise("`args' method is not available with :dry_types plugin. use `attribute' method instead")
end
attribute(name, *args) click to toggle source
# File lib/excom/plugins/dry_types.rb, line 60
def attribute(name, *args)
  const_get(:Attributes).send(:attribute, name, *args)
  arg_methods.send(:define_method, name){ @attributes.send(name) }
end
opts(*) click to toggle source
# File lib/excom/plugins/dry_types.rb, line 56
def opts(*)
  raise("`args' method is not available with :dry_types plugin. use `attribute' method instead")
end