Exception: Cuba::Mote::NoLayout

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cuba/mote.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instance) ⇒ NoLayout

Returns a new instance of NoLayout.



42
43
44
# File 'lib/cuba/mote.rb', line 42

def initialize(instance)
  @instance = instance
end

Instance Attribute Details

#instanceObject (readonly)

Returns the value of attribute instance.



40
41
42
# File 'lib/cuba/mote.rb', line 40

def instance
  @instance
end

Instance Method Details

#messageObject



46
47
48
# File 'lib/cuba/mote.rb', line 46

def message
  "Missing Layout: Try doing #{instance.class}.settings[:layout] = 'layout'"
end