module Maven::Tools::DSL::Models
Public Instance Methods
method_missing( m, *args )
click to toggle source
Calls superclass method
# File lib/maven/tools/dsl/models.rb, line 33 def method_missing( m, *args ) if @model.respond_to? m meth = @model.method m if meth.arity == 0 && args.size == 1 @model.send( "#{m}=".to_sym, *args ) else @model.send( m, *args ) end else super end end
model()
click to toggle source
# File lib/maven/tools/dsl/models.rb, line 25 def model @model end
respond_to?( m )
click to toggle source
# File lib/maven/tools/dsl/models.rb, line 29 def respond_to?( m ) @model.respond_to?( m ) || @model.respond_to?( m.to_s[ 0..-2 ].to_sym ) end