class Nanoc::Int::TextualContent

@api private

Attributes

string[R]

@return [String]

Public Class Methods

new(string, filename: nil) click to toggle source
Calls superclass method Nanoc::Int::Content.new
# File lib/nanoc/base/entities/content.rb, line 63
def initialize(string, filename: nil)
  super(filename)
  @string = string
end

Public Instance Methods

binary?() click to toggle source
# File lib/nanoc/base/entities/content.rb, line 73
def binary?
  false
end
freeze() click to toggle source
Calls superclass method Nanoc::Int::Content#freeze
# File lib/nanoc/base/entities/content.rb, line 68
def freeze
  super
  @string.freeze
end