Class: Tidy::TemplateBinding
- Inherits:
-
Object
- Object
- Tidy::TemplateBinding
- Defined in:
- lib/tidy/template_binding.rb
Instance Method Summary collapse
-
#credit ⇒ Object
COMMON stuff for templates.
- #get_binding ⇒ Object
- #get_destination(path) ⇒ Object
- #init! ⇒ Object
-
#initialize(template) ⇒ TemplateBinding
constructor
A new instance of TemplateBinding.
-
#valid? ⇒ Boolean
override this method to do extra curricular template activities.
Constructor Details
#initialize(template) ⇒ TemplateBinding
Returns a new instance of TemplateBinding.
5 6 7 8 |
# File 'lib/tidy/template_binding.rb', line 5 def initialize(template) @template = template @is_valid = true end |
Instance Method Details
#credit ⇒ Object
COMMON stuff for templates
22 23 24 |
# File 'lib/tidy/template_binding.rb', line 22 def credit "Generated with Tidy Flash" end |
#get_binding ⇒ Object
15 16 17 |
# File 'lib/tidy/template_binding.rb', line 15 def get_binding return binding end |
#get_destination(path) ⇒ Object
18 19 20 |
# File 'lib/tidy/template_binding.rb', line 18 def get_destination path path end |
#init! ⇒ Object
9 10 11 |
# File 'lib/tidy/template_binding.rb', line 9 def init! #override this method to do extra curricular template activities end |
#valid? ⇒ Boolean
override this method to do extra curricular template activities
12 13 14 |
# File 'lib/tidy/template_binding.rb', line 12 def valid? @is_valid end |