Module: Skyline::Positionable::ClassMethods

Defined in:
lib/skyline/positionable.rb

Instance Method Summary collapse

Instance Method Details

#positionable_scopeString, Symbol

Get the positionable_scope for this class (uses an instance variable on class level)

Returns:

  • (String, Symbol)

    The scope to look in



23
24
25
# File 'lib/skyline/positionable.rb', line 23

def positionable_scope
  @positionable_scope
end

#positionable_scope=(scope) ⇒ String, Symbol

Set the positionable_sope for this class

Parameters:

  • scope (String, Symbol)

    The scope to use, mostly a column name.

Returns:

  • (String, Symbol)

    The scope that has just been set.



31
32
33
# File 'lib/skyline/positionable.rb', line 31

def positionable_scope=(scope)
  @positionable_scope = scope
end