Class: Skyline::Content::MetaData::ClassSettings
- Defined in:
- lib/skyline/content/meta_data/class_settings.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#klass ⇒ Object
Klass these ClassSettings belong to.
- #plural_label ⇒ Object
- #singular_label ⇒ Object
Methods inherited from Field
#association?, #attribute_name, #attribute_value, #column, from, #hidden_in, #initialize, #inspect, #owner, #owner_class, #plural, #plural_title, #singular, #singular_title, #to_param, #type, #type_cast, #unique_values, #update, #value
Constructor Details
This class inherits a constructor from Skyline::Content::MetaData::Field
Instance Method Details
#klass ⇒ Object
Klass these ClassSettings belong to
14 |
# File 'lib/skyline/content/meta_data/class_settings.rb', line 14 def klass; self.owner; end |
#plural_label ⇒ Object
8 9 10 |
# File 'lib/skyline/content/meta_data/class_settings.rb', line 8 def plural_label plural(self.label,self.klass.to_s.demodulize.underscore.humanize.pluralize) end |
#singular_label ⇒ Object
5 6 7 |
# File 'lib/skyline/content/meta_data/class_settings.rb', line 5 def singular_label singular(self.label,self.klass.to_s.demodulize.underscore.humanize) end |