Class: LibXML::XML::XSLT::Stylesheet
- Inherits:
-
Object
- Object
- LibXML::XML::XSLT::Stylesheet
- Defined in:
- lib/libxslt/deprecated.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
-
#filename ⇒ Object
Returns the value of attribute filename.
Instance Method Summary collapse
- #apply ⇒ Object
-
#initialize(stylesheet) ⇒ Stylesheet
constructor
A new instance of Stylesheet.
- #parse ⇒ Object
- #print(filename) ⇒ Object
- #save(filename) ⇒ Object
Constructor Details
#initialize(stylesheet) ⇒ Stylesheet
Returns a new instance of Stylesheet.
39 40 41 |
# File 'lib/libxslt/deprecated.rb', line 39 def initialize(stylesheet) @stylesheet = stylesheet end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
37 38 39 |
# File 'lib/libxslt/deprecated.rb', line 37 def doc @doc end |
#filename ⇒ Object
Returns the value of attribute filename.
37 38 39 |
# File 'lib/libxslt/deprecated.rb', line 37 def filename @filename end |
Instance Method Details
#apply ⇒ Object
52 53 54 |
# File 'lib/libxslt/deprecated.rb', line 52 def apply @result = @stylesheet.apply(@doc) end |
#parse ⇒ Object
48 49 50 |
# File 'lib/libxslt/deprecated.rb', line 48 def parse self end |
#print(filename) ⇒ Object
61 62 63 |
# File 'lib/libxslt/deprecated.rb', line 61 def print(filename) raise(ArgumentError) unless @result end |
#save(filename) ⇒ Object
56 57 58 59 |
# File 'lib/libxslt/deprecated.rb', line 56 def save(filename) raise(ArgumentError) unless @result @result.save(filename) end |