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.
40 41 42 |
# File 'lib/libxslt/deprecated.rb', line 40 def initialize(stylesheet) @stylesheet = stylesheet end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
38 39 40 |
# File 'lib/libxslt/deprecated.rb', line 38 def doc @doc end |
#filename ⇒ Object
Returns the value of attribute filename.
38 39 40 |
# File 'lib/libxslt/deprecated.rb', line 38 def filename @filename end |
Instance Method Details
#apply ⇒ Object
53 54 55 |
# File 'lib/libxslt/deprecated.rb', line 53 def apply @result = @stylesheet.apply(@doc) end |
#parse ⇒ Object
49 50 51 |
# File 'lib/libxslt/deprecated.rb', line 49 def parse self end |
#print(filename) ⇒ Object
62 63 64 |
# File 'lib/libxslt/deprecated.rb', line 62 def print(filename) raise(ArgumentError) unless @result end |
#save(filename) ⇒ Object
57 58 59 60 |
# File 'lib/libxslt/deprecated.rb', line 57 def save(filename) raise(ArgumentError) unless @result @result.save(filename) end |