Module: RSpecMagic::Stable::DescribedSym::Exports

Defined in:
lib/rspec_magic/stable/described_sym.rb

Instance Method Summary collapse

Instance Method Details

#described_symSymbol Also known as: me

A Symbol representation of described_class.

Returns:

  • (Symbol)

    E.g. :user_profile.



24
25
26
# File 'lib/rspec_magic/stable/described_sym.rb', line 24

def described_sym
  Util.underscore(described_class.to_s).to_sym
end