Class: Jasonette::Jason::Head

Inherits:
Base
  • Object
show all
Defined in:
lib/jasonette/jason/head.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes, #context, #json

Instance Method Summary collapse

Methods inherited from Base

#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

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



21
22
23
# File 'lib/jasonette/jason/head.rb', line 21

def action name, *args, &block
  property_sender actions, name, *args, &block
end

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



13
14
15
# File 'lib/jasonette/jason/head.rb', line 13

def datum name, *args, &block
  property_sender data, name, *args, &block
end

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



17
18
19
# File 'lib/jasonette/jason/head.rb', line 17

def style name, *args, &block
  property_sender styles, name, *args, &block
end

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



9
10
11
# File 'lib/jasonette/jason/head.rb', line 9

def template name, *args, &block
  property_sender templates, name, *args, &block
end