Class: Hammer::Shell::SayProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/hammer/shell.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name) ⇒ Object

Raises:

  • (Hammer::Error)


44
45
46
# File 'lib/hammer/shell.rb', line 44

def method_missing(name, *)
  raise Hammer::Error, "unknown color :#{name} (valid: #{COLORS.keys.join(', ')})"
end

Instance Method Details

#respond_to_missing?(_name, _include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/hammer/shell.rb', line 48

def respond_to_missing?(_name, _include_private = false)
  false
end