Class: Uistiti::Alpha::Link

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/uistiti/alpha/link.rb

Instance Method Summary collapse

Constructor Details

#initialize(path:, method: :get, color: nil, text: nil) ⇒ Link

Returns a new instance of Link.



6
7
8
9
10
11
12
13
# File 'app/components/uistiti/alpha/link.rb', line 6

def initialize(path:, method: :get, color: nil, text: nil)
  super()
  
  @path = path        
  @method = method   
  @color = color  
  @text = text   
end