Module: Apotomo::JavascriptGenerator::Right

Defined in:
lib/apotomo/javascript_generator.rb

Instance Method Summary collapse

Instance Method Details

#element(id) ⇒ Object


36
# File 'lib/apotomo/javascript_generator.rb', line 36

def element(id);            "jQuery(\"#{id}\")"; end

#replace(id, markup) ⇒ Object


38
# File 'lib/apotomo/javascript_generator.rb', line 38

def replace(id, markup);    element(id) + '.replace("'+escape(markup)+'");'; end

#replace_id(id, markup) ⇒ Object


40
# File 'lib/apotomo/javascript_generator.rb', line 40

def replace_id(id, markup); replace(id, markup); end

#rightObject


35
# File 'lib/apotomo/javascript_generator.rb', line 35

def right;                  end

#update(id, markup) ⇒ Object


37
# File 'lib/apotomo/javascript_generator.rb', line 37

def update(id, markup);     element(id) + '.update("'+escape(markup)+'");'; end

#update_id(id, markup) ⇒ Object


39
# File 'lib/apotomo/javascript_generator.rb', line 39

def update_id(id, markup);  update(id, markup); end