Module: VV::SymbolMethods
- Included in:
- Symbol
- Defined in:
- lib/vv/symbol_methods.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
- #insta ⇒ Object
- #insta_sym ⇒ Object
- #plural?(*args, **kwargs) ⇒ Boolean
- #setter ⇒ Object
- #setter_sym ⇒ Object
- #singular?(*args, **kwargs) ⇒ Boolean
- #vv_json ⇒ Object
Class Method Details
.included(base) ⇒ Object
4 5 6 |
# File 'lib/vv/symbol_methods.rb', line 4 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#insta ⇒ Object
18 19 20 |
# File 'lib/vv/symbol_methods.rb', line 18 def insta self.to_s.insta end |
#insta_sym ⇒ Object
22 23 24 |
# File 'lib/vv/symbol_methods.rb', line 22 def insta_sym self.to_s.insta_sym end |
#plural?(*args, **kwargs) ⇒ Boolean
34 35 36 |
# File 'lib/vv/symbol_methods.rb', line 34 def plural? *args, **kwargs self.to_s.plural?( *args, **kwargs ) end |
#setter ⇒ Object
26 27 28 |
# File 'lib/vv/symbol_methods.rb', line 26 def setter self.to_s.setter end |
#setter_sym ⇒ Object
30 31 32 |
# File 'lib/vv/symbol_methods.rb', line 30 def setter_sym self.to_s.setter_sym end |
#singular?(*args, **kwargs) ⇒ Boolean
38 39 40 |
# File 'lib/vv/symbol_methods.rb', line 38 def singular? *args, **kwargs self.to_s.singular?( *args, **kwargs ) end |
#vv_json ⇒ Object
14 15 16 |
# File 'lib/vv/symbol_methods.rb', line 14 def vv_json self.to_s.vv_json end |