Class: Rack::XMLStylesheet::Strategy::Base
- Inherits:
-
Object
- Object
- Rack::XMLStylesheet::Strategy::Base
- Defined in:
- lib/rack/xml_stylesheet/strategy.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
- #add_processing_instructions ⇒ Object
-
#initialize(result, options) ⇒ Base
constructor
A new instance of Base.
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, ) @result = result @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/rack/xml_stylesheet/strategy.rb', line 6 def @options end |
#result ⇒ Object (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_instructions ⇒ Object
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 |