Class: Jschematic::Attributes::Format::NullFormat
- Inherits:
-
Object
- Object
- Jschematic::Attributes::Format::NullFormat
- Includes:
- Element
- Defined in:
- lib/jschematic/attributes/format.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
Attributes included from Element
Instance Method Summary collapse
- #accepts?(instance) ⇒ Boolean
-
#initialize(format) ⇒ NullFormat
constructor
A new instance of NullFormat.
Methods included from Element
#required?, #schema_for, #title, #to_s
Constructor Details
#initialize(format) ⇒ NullFormat
Returns a new instance of NullFormat.
83 84 85 |
# File 'lib/jschematic/attributes/format.rb', line 83 def initialize(format) @format = format end |
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format.
81 82 83 |
# File 'lib/jschematic/attributes/format.rb', line 81 def format @format end |
Instance Method Details
#accepts?(instance) ⇒ Boolean
87 88 89 |
# File 'lib/jschematic/attributes/format.rb', line 87 def accepts?(instance) true end |