Class: Jquery_Tabs
Instance Method Summary collapse
-
#initialize(hashGroups) ⇒ Jquery_Tabs
constructor
A new instance of Jquery_Tabs.
- #render ⇒ Object
- #save(file) ⇒ Object
Constructor Details
#initialize(hashGroups) ⇒ Jquery_Tabs
Returns a new instance of Jquery_Tabs.
8 9 10 11 12 13 |
# File 'lib/jquery_tabs.rb', line 8 def initialize(hashGroups) @hashGroups = hashGroups @template = get_template @div = UUIDTools::UUID.random_create end |
Instance Method Details
#render ⇒ Object
15 16 17 18 19 |
# File 'lib/jquery_tabs.rb', line 15 def render unless @template.nil? ERB.new(@template).result(binding) end end |
#save(file) ⇒ Object
21 22 23 24 25 |
# File 'lib/jquery_tabs.rb', line 21 def save(file) File.open(file, "w+") do |f| f.write(render) end end |