Method: Vedeu::Borders::DSL#disable!

Defined in:
lib/vedeu/borders/dsl.rb

#disable!Boolean

Disable the border:

Vedeu.border :border_demo do
  disable!
  # ... some other code (will be ignored)
end

Returns:

  • (Boolean)


70
71
72
73
74
75
76
77
78
79
# File 'lib/vedeu/borders/dsl.rb', line 70

def disable!
  model.enabled = false

  hide_bottom!
  hide_left!
  hide_right!
  hide_top!

  model.enabled
end