Module: Ayril::XMLElement::ElementStyleManipulation

Included in:
Ayril::XMLElement
Defined in:
lib/ayril/xml_element/element_style_manipulation.rb

Instance Method Summary collapse

Instance Method Details

#get_style(prop) ⇒ Object



7
# File 'lib/ayril/xml_element/element_style_manipulation.rb', line 7

def get_style(prop) self.style[style] end

#set_style(style, value) ⇒ Object



8
# File 'lib/ayril/xml_element/element_style_manipulation.rb', line 8

def set_style(style, value) self.style[style] = value end

#styleObject



4
# File 'lib/ayril/xml_element/element_style_manipulation.rb', line 4

def style; XMLElement::XMLCSSHash.new self end

#style=(h) ⇒ Object



5
# File 'lib/ayril/xml_element/element_style_manipulation.rb', line 5

def style=(h) self.style.replace h end