Class: Rack::XMLStylesheet::Strategy::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/xml_stylesheet/strategy.rb

Direct Known Subclasses

Rails23

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result, options) ⇒ Base

Returns a new instance of Base.



9
10
11
12
# File 'lib/rack/xml_stylesheet/strategy.rb', line 9

def initialize(result, options)
  @result = result
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/rack/xml_stylesheet/strategy.rb', line 6

def options
  @options
end

#resultObject (readonly)

Returns the value of attribute result.



7
8
9
# File 'lib/rack/xml_stylesheet/strategy.rb', line 7

def result
  @result
end

Instance Method Details

#add_processing_instructionsObject



14
15
16
# File 'lib/rack/xml_stylesheet/strategy.rb', line 14

def add_processing_instructions
  add_processing_instructions! if may_add_processing_instructions?
end