Class: Spina::Pro::UserInterface::HintComponent

Inherits:
ApplicationComponent
  • Object
show all
Defined in:
app/components/spina/pro/user_interface/hint_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(hint = "") ⇒ HintComponent

Returns a new instance of HintComponent.



6
7
8
# File 'app/components/spina/pro/user_interface/hint_component.rb', line 6

def initialize(hint = "")
  @hint = hint
end

Instance Method Details

#render?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'app/components/spina/pro/user_interface/hint_component.rb', line 10

def render?
  !Spina::Pro.config.disable_hints
end