Sha256: a9850f25af91d99a09a47ef384f050bee0924a12ca9908eab1628160683b6012

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

class ActionController::Base
  def self.yullio_page_width(x)
    self.class_eval "def yullio_page_width; \"#{x.to_s}\"; end"
  end
  
  def self.yullio_column_template(x)
    self.class_eval "def yullio_column_template; \"#{x.to_s.gsub(/_/, '-')}\"; end"
  end
  
  yullio_page_width(:doc)
  yullio_column_template(:yui_t1)

  helper_method :yullio_page_width, :yullio_column_template
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
layout_yullio_generator-0.9.0 templates/plugins/yullio/init.rb