Class: InplaceEditingHelper::EmptyTag::CSS
- Inherits:
-
Object
- Object
- InplaceEditingHelper::EmptyTag::CSS
- Defined in:
- app/helpers/inplace_editing_helper.rb
Instance Method Summary collapse
- #<<(name) ⇒ Object
- #empty? ⇒ Boolean
-
#initialize(css) ⇒ CSS
constructor
A new instance of CSS.
- #to_s ⇒ Object
Constructor Details
#initialize(css) ⇒ CSS
Returns a new instance of CSS.
218 219 220 221 222 223 224 |
# File 'app/helpers/inplace_editing_helper.rb', line 218 def initialize(css) if css.is_a? String @internals = css.split(' ') else @internals = css.to_a end end |
Instance Method Details
#<<(name) ⇒ Object
234 235 236 237 |
# File 'app/helpers/inplace_editing_helper.rb', line 234 def <<(name) @internals << name nil end |
#empty? ⇒ Boolean
230 231 232 |
# File 'app/helpers/inplace_editing_helper.rb', line 230 def empty? @internals.empty? end |
#to_s ⇒ Object
226 227 228 |
# File 'app/helpers/inplace_editing_helper.rb', line 226 def to_s @internals.uniq.join(' ') end |