Sha256: 90bdc37ddb1c44b5af189642626f6c9962ec308eb783078013c011faa8ae50f9
Contents?: true
Size: 1.28 KB
Versions: 12
Compression:
Stored size: 1.28 KB
Contents
# Author:: Eric Crane (mailto:eric.crane@mac.com) # Copyright:: Copyright (c) 2019 Eric Crane. All rights reserved. # # A [multiline] block of text. # module Gloo module Objs class Text < Gloo::Core::Obj KEYWORD = 'text'.freeze KEYWORD_SHORT = 'txt'.freeze # # The name of the object type. # def self.typename return KEYWORD end # # The short name of the object type. # def self.short_typename return KEYWORD_SHORT end # # Set the value with any necessary type conversions. # def set_value( new_value ) self.value = new_value.to_s end # # Does this object support multi-line values? # Initially only true for scripts. # def multiline_value? return false end # # Get the number of lines of text. # def line_count return value.split( "\n" ).count end # --------------------------------------------------------------------- # Messages # --------------------------------------------------------------------- # # Get a list of message names that this object receives. # def self.messages return super end end end end
Version data entries
12 entries across 12 versions & 1 rubygems