Class: Tixriss::Transformer
- Inherits:
-
Object
- Object
- Tixriss::Transformer
- Defined in:
- lib/tixriss/transformer.rb
Defined Under Namespace
Classes: HTML
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
Instance Method Summary collapse
-
#initialize(input) ⇒ Transformer
constructor
A new instance of Transformer.
- #output ⇒ Object
Constructor Details
#initialize(input) ⇒ Transformer
Returns a new instance of Transformer.
68 69 70 |
# File 'lib/tixriss/transformer.rb', line 68 def initialize(input) @input = input end |
Instance Attribute Details
#input ⇒ Object (readonly)
Returns the value of attribute input.
66 67 68 |
# File 'lib/tixriss/transformer.rb', line 66 def input @input end |
Instance Method Details
#output ⇒ Object
72 73 74 |
# File 'lib/tixriss/transformer.rb', line 72 def output HTML.new(input).to_s end |