Class: RablRails::Condition
- Inherits:
-
Object
- Object
- RablRails::Condition
- Defined in:
- lib/rabl-rails/condition.rb
Instance Attribute Summary collapse
-
#proc ⇒ Object
readonly
Returns the value of attribute proc.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(proc, source) ⇒ Condition
constructor
A new instance of Condition.
Constructor Details
#initialize(proc, source) ⇒ Condition
Returns a new instance of Condition.
5 6 7 8 |
# File 'lib/rabl-rails/condition.rb', line 5 def initialize(proc, source) @proc = proc @source = source end |
Instance Attribute Details
#proc ⇒ Object (readonly)
Returns the value of attribute proc.
3 4 5 |
# File 'lib/rabl-rails/condition.rb', line 3 def proc @proc end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
3 4 5 |
# File 'lib/rabl-rails/condition.rb', line 3 def source @source end |