Class: Reflex::Style
- Inherits:
-
Object
show all
- Includes:
- HasTags, Xot::Setter
- Defined in:
- lib/reflex/style.rb
Instance Method Summary
collapse
Methods included from HasTags
#clear_tags, #tag, #tag=, #tags, #untag
Constructor Details
#initialize(opts = {}, &block) ⇒ Style
18
19
20
21
22
|
# File 'lib/reflex/style.rb', line 18
def initialize (opts = {}, &block)
super()
set opts
Xot::BlockUtil.instance_eval_or_block_call self, &block if block
end
|
Instance Method Details
#flow ⇒ Object
28
29
30
|
# File 'lib/reflex/style.rb', line 28
def flow ()
get_flow.map {|n| flow2sym n}
end
|
#flow=(*syms) ⇒ Object
24
25
26
|
# File 'lib/reflex/style.rb', line 24
def flow= (*syms)
set_flow *syms.flatten.map {|sym| sym2flow sym}
end
|