Class: NoTarget

Inherits:
Object
  • Object
show all
Defined in:
lib/yaggo/dsl.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args) ⇒ Object



27
28
29
# File 'lib/yaggo/dsl.rb', line 27

def method_missing(m, *args)
  raise "'#{m}' used outside of option or arg description"
end

Instance Method Details

#description(str) ⇒ Object



25
# File 'lib/yaggo/dsl.rb', line 25

def description str; $description = str; end

#description=(str) ⇒ Object



26
# File 'lib/yaggo/dsl.rb', line 26

def description= str; $description = str; end