Module: Orange::Pulp::PageParts

Defined in:
lib/orange-core/resources/page_parts.rb

Instance Method Summary collapse

Instance Method Details

#add_css(file, opts = {}) ⇒ Object



60
61
62
# File 'lib/orange-core/resources/page_parts.rb', line 60

def add_css(file, opts = {})
  orange[:page_parts].add_css(packet, file, opts)
end

#add_js(file, opts = {}) ⇒ Object



64
65
66
# File 'lib/orange-core/resources/page_parts.rb', line 64

def add_js(file, opts = {})
  orange[:page_parts].add_js(packet, file, opts)
end

#partObject



52
53
54
# File 'lib/orange-core/resources/page_parts.rb', line 52

def part
  orange[:page_parts].part(packet)
end

#partsObject

Feels like part should be plural, no?



57
# File 'lib/orange-core/resources/page_parts.rb', line 57

def parts;    part;     end