Class: Jschematic::Attributes::Format::NullFormat

Inherits:
Object
  • Object
show all
Includes:
Element
Defined in:
lib/jschematic/attributes/format.rb

Instance Attribute Summary collapse

Attributes included from Element

#id, #parent

Instance Method Summary collapse

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

#formatObject (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

Returns:

  • (Boolean)


87
88
89
# File 'lib/jschematic/attributes/format.rb', line 87

def accepts?(instance)
  true
end