Class: Site
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/lokka/site.rb', line 11 def method_missing(method, *args) if method.to_s =~ /=$/ super else o = Option.first_or_new(:name => method) o.value end end |