Class: Bike::Textarea::Pre

Inherits:
Bike::Textarea show all
Defined in:
lib/scalar/textarea_pre.rb

Constant Summary

Constants inherited from Field

Field::DEFAULT_META

Instance Attribute Summary

Attributes inherited from Field

#action, #result

Instance Method Summary collapse

Methods inherited from Bike::Textarea

#errors

Methods inherited from Field

#[], #[]=, #commit, #create, #default_action, #delete, #empty?, #errors, #find_ancestor, #get, h, #initialize, #inspect, instance, #item, #load, #load_default, #meta_admins, #meta_client, #meta_folder, #meta_full_name, #meta_group, #meta_name, #meta_owner, #meta_owners, #meta_roles, #meta_sd, #meta_short_name, #pending?, #permit?, #post, #update, #val, #valid?, #workflow

Methods included from I18n

_, bindtextdomain, domain, domain=, find_msg, lang, lang=, merge_msg!, msg, n_, parse_msg, po_dir, po_dir=

Constructor Details

This class inherits a constructor from Bike::Field

Instance Method Details

#_g_default(arg) ⇒ Object



10
11
12
# File 'lib/scalar/textarea_pre.rb', line 10

def _g_default(arg)
  '<pre>' + Bike::Field.h(val) + '</pre>'
end