Class: Placet::RelationBuilder
- Inherits:
-
Object
- Object
- Placet::RelationBuilder
- Defined in:
- lib/placet/dsl.rb
Instance Attribute Summary collapse
-
#check_block ⇒ Object
readonly
Returns the value of attribute check_block.
-
#scope_block ⇒ Object
readonly
Returns the value of attribute scope_block.
Instance Method Summary collapse
Instance Attribute Details
#check_block ⇒ Object (readonly)
Returns the value of attribute check_block.
35 36 37 |
# File 'lib/placet/dsl.rb', line 35 def check_block @check_block end |
#scope_block ⇒ Object (readonly)
Returns the value of attribute scope_block.
35 36 37 |
# File 'lib/placet/dsl.rb', line 35 def scope_block @scope_block end |
Instance Method Details
#check(&block) ⇒ Object
37 |
# File 'lib/placet/dsl.rb', line 37 def check(&block) = @check_block = block |
#scope(&block) ⇒ Object
38 |
# File 'lib/placet/dsl.rb', line 38 def scope(&block) = @scope_block = block |