Class: Jasonette::Style

Inherits:
Base
  • Object
show all
Defined in:
lib/jasonette/core/style.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes, #context, #json

Instance Method Summary collapse

Methods inherited from Base

#action, #attr_value, #attributes!, #empty?, #encode, #implicit_set!, #initialize, #inline, #inline!, #klass, #method_missing, #reload!, #render!, #success, #target!, #trigger, #with_attributes

Methods included from Properties

included, #klass_for_property, #merge_properties, #prop, #properties, #properties_empty?, #property_get!, #property_sender, #property_set!

Constructor Details

This class inherits a constructor from Jasonette::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Jasonette::Base

Instance Method Details

#set_style(name, *args, &block) ⇒ Object



3
4
5
6
# File 'lib/jasonette/core/style.rb', line 3

def set_style name, *args, &block
  raise [name, args, block_given?].inspect
  @attributes[name.to_s] = value
end