Class: PhlexyUI::Base

Inherits:
Phlex::HTML
  • Object
show all
Defined in:
lib/phlexy_ui/base.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*base_modifiers, **options) ⇒ Base

Returns a new instance of Base.



5
6
7
8
# File 'lib/phlexy_ui/base.rb', line 5

def initialize(*base_modifiers, **options)
  @base_modifiers = base_modifiers
  @options = options
end

Class Method Details

.modifiersObject



11
12
13
14
15
16
17
18
19
# File 'lib/phlexy_ui/base.rb', line 11

def modifiers
  @modifiers ||= {}

  if superclass.respond_to?(:modifiers, true)
    superclass.send(:modifiers).merge(@modifiers)
  else
    @modifiers
  end
end