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
Constructor Details
#initialize(format) ⇒ NullFormat
Returns a new instance of NullFormat.
82 83 84 |
# File 'lib/jschematic/attributes/format.rb', line 82 def initialize(format) @format = format end |
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format.
80 81 82 |
# File 'lib/jschematic/attributes/format.rb', line 80 def format @format end |
Instance Method Details
#accepts?(instance) ⇒ Boolean
86 87 88 |
# File 'lib/jschematic/attributes/format.rb', line 86 def accepts?(instance) true end |