Module: Excom::Plugins::DryTypes::ClassMethods
- Defined in:
- lib/excom/plugins/dry_types.rb
Instance Method Summary collapse
Instance Method Details
#args ⇒ Object
52 53 54 |
# 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) ⇒ Object
60 61 62 63 |
# 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 ⇒ Object
56 57 58 |
# 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 |