Class: InplaceEditingHelper::EmptyTag::CSS

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/inplace_editing_helper.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


230
231
232
# File 'app/helpers/inplace_editing_helper.rb', line 230

def empty?
  @internals.empty?
end

#to_sObject



226
227
228
# File 'app/helpers/inplace_editing_helper.rb', line 226

def to_s
  @internals.uniq.join(' ')
end