Class: Personify::DefaultContext

Inherits:
Context
  • Object
show all
Defined in:
lib/personify/context.rb

Instance Method Summary collapse

Methods inherited from Context

#[], allow_method?, #allow_method?, allowed_context_methods, context_method, #has_key?, #local_assigns, #local_assigns=

Instance Method Details

#if(statement, value) ⇒ Object



45
46
47
48
49
50
51
# File 'lib/personify/context.rb', line 45

def if(statement, value)    
  if statement
    value
  else
    nil
  end
end