Class: Tidy::TemplateBinding

Inherits:
Object
  • Object
show all
Defined in:
lib/tidy/template_binding.rb

Instance Method Summary collapse

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

#creditObject

COMMON stuff for templates



22
23
24
# File 'lib/tidy/template_binding.rb', line 22

def credit
  "Generated with Tidy Flash"
end

#get_bindingObject



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

Returns:

  • (Boolean)


12
13
14
# File 'lib/tidy/template_binding.rb', line 12

def valid?
  @is_valid
end